summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-02-15 10:40:07 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-02-18 21:31:05 -0700
commit25c23f1d956104a072a95355ffaa7a38b53710b7 (patch)
treed31cadbe3c6823f1ecca57bbbb19a683f9372ef6 /numpy/core/setup.py
parent53c6ef74a7a3cce80f4db581eb708c5e374715b5 (diff)
downloadnumpy-25c23f1d956104a072a95355ffaa7a38b53710b7.tar.gz
ENH: Add new npy_divmod function to npy_math.
The new function is taken from the Python version of float_divmod and computes the result of floor_division and modulus together so that they can be kept compatible. This should also result in the '//' and '%' operators applied to np.float64 and Python float returning the same values. The intent is to implement the ufuncs floor_divide and remainder using the npy_divmod so that their results will also match those of '//' and '%' while providing consistency between the two. Note that npy_divmod uses fmod, which is very slow. As a result, the floor_division and remainder functions are about 4x slower than the previous versions based on the floor function, but should be more accurate.
Diffstat (limited to 'numpy/core/setup.py')
0 files changed, 0 insertions, 0 deletions