summaryrefslogtreecommitdiff
path: root/numpy/array_api
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-12-08 17:57:52 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-12-08 17:57:52 -0600
commit0ced6dc27e8c777f146d5fac0d7cc52bfdd883de (patch)
treef36752cc43fb0640e581ad36abacd75da3c0e438 /numpy/array_api
parent6ae1a58e508a1f843ec3736488c67ac0bb793c16 (diff)
downloadnumpy-0ced6dc27e8c777f146d5fac0d7cc52bfdd883de.tar.gz
REV: Revert adding a default ufunc promoter
Adding a default promoter should not be necessary with the reduction-hack (use output DType to guess loop DType if incompatible with the loop). However, using it had two effects: 1. SciPy has a ufunc that has a loop it does not want to exist. This loop is homogeneous (unlike the correct one) and gives a deprecation warning. The default promoter would assume the homogeneous loop is OK (maybe not ideal) if it exists. Since it is a "bad" loop that gives a deprecation warning, it is not really true though. 2. Datetime promotion is currently utterly buggy, leading to: timedelta.sum(dtype="f8") ignoring the `f8` requests. But we actually end up relying on that behaviour in our `np.mean` implementation...
Diffstat (limited to 'numpy/array_api')
0 files changed, 0 insertions, 0 deletions