Open ricardoV94 opened 3 weeks ago
Okay there seems to be a conscious decision in the name: It's called structured_exp
instead of just exp
. Whereas for methods that are truly sparse like sin
, the sparse version is just called sin
.
Not sure we should make them available though? They're not used anywhere? If a user is savy enough to know they want a structured computation ignoring the non-zero outputs, they can create one themselves with the structured_monoid
decorator?
I agree these are probably too niche to be stand-alone functions. I dislike the name structured_monoid
for the helper though. sparse_elemwise
seems better?
Doesn't sound as fancy (no objections) :D
Description
Since exp(0) != 0, the output is no longer sparse (where missing values are by definition zero). So the wrapper logic where we apply the elemwise operation to the non-sparse entries does not make sense.
Same for
log
and potentially other Ops