-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
Description
I was considering allowing ndarray
under elemwise
again, provided that f(ndarrays, zeros_in_place_of_COO)
is all-zero.
Upsides:
- No conversion required
- No matching/sorting required for the
ndarray
inputs at all. This makes it significantly faster for mixed sparse-denseelemwise
.
Downsides:
- We'll have to broadcast all
ndarrays
against each other to actually test for densification. This could be huge. Or we can skip this step and risk wrong results.- Not so bad considering in almost all use-cases, the
ndarrays
will be tiny compared toCOO
.
- Not so bad considering in almost all use-cases, the
- Puts a slight (but not huge) roadblock for arbitrary fill-values.