diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-12-08 17:57:52 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-12-08 17:57:52 -0600 |
commit | 0ced6dc27e8c777f146d5fac0d7cc52bfdd883de (patch) | |
tree | f36752cc43fb0640e581ad36abacd75da3c0e438 /numpy/array_api/_searching_functions.py | |
parent | 6ae1a58e508a1f843ec3736488c67ac0bb793c16 (diff) | |
download | numpy-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/_searching_functions.py')
0 files changed, 0 insertions, 0 deletions