Closed mtsokol closed 1 month ago
Hi @hameerabbasi,
This PR fixes argmin/argmax when input is 1D and result is a fill value. To reproduce:
argmin
argmax
sparse.argmax(sparse.asarray(np.arange(1), dtype=np.uint8)).dtype # defaulted to `float64` as `np.array([]).dtype` is `float64`. Now it's `intp`
Hi @hameerabbasi,
This PR fixes
argmin
/argmax
when input is 1D and result is a fill value. To reproduce: