summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/arrayfns.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-06-14 20:23:18 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-06-14 20:33:48 +0200
commit4b4a7365aeff3dfd19d4b72765db5358963614e9 (patch)
tree03d7c97b1e5cae4da6a3b04ffba785077c1bff25 /numpy/oldnumeric/arrayfns.py
parent3b7d3aef83bd914ff20fdc2a3d680591e69f61de (diff)
downloadnumpy-4b4a7365aeff3dfd19d4b72765db5358963614e9.tar.gz
ENH: vectorize boolean logical &&, ||, abs and not
The code ensures the result is identical to a boolean operation even though this might be unnecessary if bools are used correctly everywhere. The overhead doesn't matter much as vectorizing single byte operations hits the memory bandwidth limit very quickly. Improves performance by about a factor of 5 to 10 depending on the cpu. These operations currently can't be autovectorized by gcc 4.8.
Diffstat (limited to 'numpy/oldnumeric/arrayfns.py')
0 files changed, 0 insertions, 0 deletions