[Numpy-svn] [numpy/numpy] 4b4a73: ENH: vectorize boolean logical &&, ||, abs and not
GitHub
noreply at github.com
Sun Jun 16 09:48:15 EDT 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 4b4a7365aeff3dfd19d4b72765db5358963614e9
https://github.com/numpy/numpy/commit/4b4a7365aeff3dfd19d4b72765db5358963614e9
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Date: 2013-06-14 (Fri, 14 Jun 2013)
Changed paths:
M doc/release/1.8.0-notes.rst
M numpy/core/src/umath/loops.c.src
M numpy/core/src/umath/simd.inc.src
M numpy/core/tests/test_numeric.py
Log Message:
-----------
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.
Commit: 2a5c2c8227b600654f31ed346c73cce77bef554d
https://github.com/numpy/numpy/commit/2a5c2c8227b600654f31ed346c73cce77bef554d
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2013-06-16 (Sun, 16 Jun 2013)
Changed paths:
M doc/release/1.8.0-notes.rst
M numpy/core/src/umath/loops.c.src
M numpy/core/src/umath/simd.inc.src
M numpy/core/tests/test_numeric.py
Log Message:
-----------
Merge pull request #3436 from juliantaylor/vectorize-bool
ENH: vectorize boolean logical &&, ||, abs and not
Compare: https://github.com/numpy/numpy/compare/bb8c89db8bc5...2a5c2c8227b6
More information about the Numpy-svn
mailing list