You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering about operators such as operator.iadd, etc. There are a few ways we can go about this:
Support them by mutating the object in-place and invalidating the cache, i.e. performing the operation and then making self a copy of the returned object.
Support them only when the sparsity structure is the same, and modify data in-place.
Don't support them at all.
If we want to maintain compatibility with Numpy code (I hope to make COO a mostly drop-in replacement for ndarray with a few exceptions at some point), I would go with 1, with a warning in the docs that in-place isn't really "in-place".
If we want to do our own thing... Then we have options 2 and 3.
The text was updated successfully, but these errors were encountered: