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
Describe the solution you'd like
Going off-tangent with the feature request in adafruit/circuitpython#7995, add the out keyword argument to all math functions implemented in the vector module.
Additional context
Allowing to pass a pre-allocated array into functions would save on RAM, and execution time, while the implementation itself is trivial, and could be done with minimal flash space penalty, given that this could be done in
Describe the solution you'd like
Going off-tangent with the feature request in adafruit/circuitpython#7995, add the
out
keyword argument to all math functions implemented in thevector
module.Additional context
Allowing to pass a pre-allocated array into functions would save on RAM, and execution time, while the implementation itself is trivial, and could be done with minimal flash space penalty, given that this could be done in
micropython-ulab/code/numpy/vector.c
Lines 35 to 46 in 3e996d9
where the output array is created.
An example can be found in https://numpy.org/doc/stable/reference/generated/numpy.fabs.html
The text was updated successfully, but these errors were encountered: