diff options
author | Richard Hattersley <rhattersley@gmail.com> | 2012-11-22 16:02:05 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-08-17 12:38:30 -0600 |
commit | 0cc113c7574e40172fe4a48e9c0d90477d736ce3 (patch) | |
tree | 757c505a424905d379a92bc7077356664efd6f8b /numpy/doc/byteswapping.py | |
parent | aeb13affe23abaa9550521531b61f03850551106 (diff) | |
download | numpy-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/doc/byteswapping.py')
0 files changed, 0 insertions, 0 deletions