Hello. It is noticeable that it fails on a 3^3 array operation. On "scalar" operations, it doesn't show the same behavior.
Like so:
$ python3.5
Python 3.5.2+ (default, Nov 3 2016, 11:10:16)
[GCC 6.2.0 20161027] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numexpr as ne
>>> a=[3]
>>> b=[3]
>>> ne.evaluate("a ** b") # array operation
array([26], dtype=int64)
>>> ne.evaluate("3 ** 3") # scalar operation
array(27, dtype=int32)
$ python
Python 2.7.12+ (default, Nov 4 2016, 17:04:30)
[GCC 6.2.0 20161027] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numexpr as ne
>>> a=[3]
>>> b=[3]
>>> ne.evaluate("a ** b")
array([26])
>>> ne.evaluate("3 ** 3")
array(27, dtype=int32)
I am not sure if it fails with other values as well.
I will keep looking.
Regards
--
Fernando Seiti Furusato
IBM Linux Technology Center
signature.asc
Description: OpenPGP digital signature
-- debian-science-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers
