Comments (2)
There are many Numpy function not currently supported, and numpy.zeros()
is no exception. The work around is to use an output parameter, similar to the example in fbcorr.py (modulo the "return" statement, see issue #21). For example:
def recontruct4DCore(ps,A,B,P0, output):
n1,n3,n4 = ps.shape
n2=A.shape[0]
for j in range(n2):
Afact=A[j]*P0
for i in range(n1):
for k in range(n3):
for l in range(n4):
output[i,j,k,l]=ps[i,k,l]*B[j]+Afact
Use numpy.zeros()
outside the call to this function to create the output array, and it should work (not sure if shape support handles indexing that well, however).
from numba.
np.zeros is recognized now, but a dtype argument needs to be passed in. This is also documented, so I'm closing this for now.
from numba.
Related Issues (20)
- `NotImplementedError` for `datetime64[10Y]`
- TypingError when conditionally shadowing variable HOT 2
- numba.typed.List fails for F-contiguous np.ndarrays if one is also C-contiguous HOT 1
- No implementation of function `Function(<built-in function setitem>)` found for signature: `setitem(readonly array(uint64, 3d, C), int64, array(int64, 1d, C))` HOT 1
- numba.core.errors.CompilerError: Failed in nopython mode pipeline (step: analyzing bytecode) / Illegal IR, del found at: del foo HOT 1
- numpy.std() results differ with and without numba HOT 4
- cumprod method doesn't upcast unsigned integer array
- A tuple of uint64 (> 2**63 but < 2**64) as the key of numba Dict HOT 3
- NumPy 2.0 incompatibility - A use of `np.complex_` still remains
- NumPy 2.0 incompatibility: RNG's `__getstate__()` returns `None`
- Specialized CUDA kernels lose a reference to the cache
- using rtsys in objmode incur pickle issue HOT 8
- nb.optional doesn't work with nb.types.NamedTuple HOT 5
- Caching is useless on higher order functions
- Code, which is never executed, slows down everything by factor 3 HOT 5
- jit wrapped numpy sort & unique is more than 5x slower HOT 9
- Failure in `test_TestPrangeSpecific` HOT 2
- Numba 0.60.0 Checklist HOT 1
- Inverting matrices with large condition numbers HOT 1
- unsupported keyword arguments and type inference unification limitation with `np.maximum` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numba.