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
Upon reflections, these functions should not be doing their own internal allocation. That's a great way to leak memory all over the place. I've replaced this to only work on existing ndarrays.
Additionally since the only use-case of providing a size is shorthand for not specifying an input. Which makes inconsistencies possible and only saves like 5-10 characters. Seems more worthwhile to simplify the API. Bottom line: leaving allocation to the user so that this won't leak memory by default.
See: scijs/ndarray-scratch#5. If that's merged, then this works automatically.
The text was updated successfully, but these errors were encountered: