-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] append and vstack #671
Comments
append should be relatively straightforward, and others might also find it useful, so I would be happy to add it. Reading the documentation of vstack, it seems to me that it's only a shortcut to what you can already do: concatenate has already been implemented. If that doesn't match your requirements, we could discuss the addition of
Do you mean the fact that Boolean indices are supposed to be 1D arrays, or something else? |
It's more about making it easier to use desktop code directly without having to modify it too much. vstack would just be a wrapper around concatenate.
If I try to use a 1D array of booleans to select rows from a 2D array you get a crash right now. Not a Not implemented error.
The above crashes. |
OK, this is a different issue then, thanks for bringing it up! I opened a ticket here #672, so that it can be addressed. |
@v923z - Any updates on this? |
Merging the implementation of |
This is more of just a wrapper around concatenate so that append/vstack work. Would be great to have them as normal so desktop code just works. Yes, otherwise, take addresses the other issue in the thread. |
Wrappers should/could be added in https://github.com/v923z/micropython-ulab/tree/master/snippets. That has the advantage that that doesn't consume irrecoverable flash space. |
If it's controlled by an ifdef that works for me. It can be off by default and I can enable it for the OpenMV Cams. |
Everything in https://github.com/v923z/micropython-ulab/tree/master/snippets is in the |
Addressed by #688. |
Describe the solution you'd like
I would like if append() and vstack() could be implemented.
Also if this limitation could be removed.
Additional context
I was trying to implement non-max-suppression using Ulab and ran into the lack of these features complicating things for me.
Happy to finance this work.
The text was updated successfully, but these errors were encountered: