Comments (3)
Unary negation should be fixed now, and should be available in the repository head. Unary inversion and not operators are still not working.
from numba.
No further comments seen. All tests in numba.tests.test_unary_ops are now passing as of commit d299f48, closing.
from numba.
This still fails for complex numbers (numba 0.11.0-3-gea20d11):
from numba import *
@autojit
def g():
a = 1j
return -a
print g()
Traceback (most recent call last):
File "complex.py", line 15, in <module>
print g()
File "numbawrapper.pyx", line 189, in numba.numbawrapper._NumbaSpecializingWrapper.__call__ (numba/numbawrapper.c:3724)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/wrapping/compiler.py", line 69, in compile_from_args
return self.compile(signature)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/wrapping/compiler.py", line 88, in compile
compiled_function = dec(self.py_func)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/decorators.py", line 224, in _jit_decorator
nopython=nopython, func_ast=func_ast, **kwargs)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/decorators.py", line 133, in compile_function
func_env = pipeline.compile2(env, func, restype, argtypes, func_ast=func_ast, **kwds)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 144, in compile2
post_ast = pipeline(func_ast, env)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 191, in __call__
ast = self.transform(ast, env)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 656, in transform
ast = stage(ast, env)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 641, in _stage
return _check_stage_object(stage_obj)(ast, env)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 202, in __call__
reporting.report(env, exc=e)
File "/Users/mforbes/.anaconda/lib/python2.7/site-packages/numba/reporting.py", line 181, in report
raise exc
numba.error.NumbaError: (see below)
--------------------- Numba Encountered Errors or Warnings ---------------------
return -a
-----------^
Error 13:11: Unary operator <_ast.USub object at 0x105bd7b50>
--------------------------------------------------------------------------------
from numba.
Related Issues (20)
- Can't execute python tests directly without using runtests.py HOT 2
- Memory leak when applying numba to an inner function HOT 1
- Errors not being raised when running code in parallel HOT 1
- Source/AST Frontend for Numba HOT 10
- typed.List __repr__() HOT 3
- Bug in the compiler in 0.60 : 'tuple' object has no attribute 'name' HOT 1
- Numba much slower than `np.sum`, and more sensitive to summation axis HOT 1
- First-class function type initializes too late
- inefficient matrix multiplication with its transpose HOT 4
- np.count_nonzero is incorrect when setting axis=0 for 1-dimensional array HOT 2
- Installation fails on termux Python 3.11 HOT 3
- Compilation failure with NumPy 2.0.1 HOT 2
- isfinite(inf) raises FloatingPointError in vectorized functions HOT 5
- TypingError When Accessing Attributes of Nested JitClasses HOT 4
- Jitted and non-jitten function give different output HOT 3
- What is the solution? HOT 4
- NotImplementedError When creating an empty structured array in parallel HOT 3
- Early Memory Deallocation/Re-use of Arrays HOT 2
- .inspect_types() crashes with Unreachable condition reached. HOT 2
- Reduce compilation time by Cythonizing parts of Numba HOT 7
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.