summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_regression.py
diff options
context:
space:
mode:
authorRichard Hattersley <rhattersley@gmail.com>2012-11-22 16:02:05 +0000
committerCharles Harris <charlesr.harris@gmail.com>2013-08-17 12:38:30 -0600
commit0cc113c7574e40172fe4a48e9c0d90477d736ce3 (patch)
tree757c505a424905d379a92bc7077356664efd6f8b /numpy/lib/tests/test_regression.py
parentaeb13affe23abaa9550521531b61f03850551106 (diff)
downloadnumpy-0cc113c7574e40172fe4a48e9c0d90477d736ce3.tar.gz
MAINT: Make setting mask values with scalars faster.
The current implementation assigns the mask value to a.flat, where a is the mask being updated. In the scalar case, that is slower than assigning to a[...], so when a is an instance of int, float, np.bool_, or np.number use that instead.
Diffstat (limited to 'numpy/lib/tests/test_regression.py')
0 files changed, 0 insertions, 0 deletions