-
Notifications
You must be signed in to change notification settings - Fork 311
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
Construction from negative strides? #842
Comments
I started working on support for negative strides in the various constructors a while ago (branch with work-in-progress changes) but didn't get a chance to finish. Most of the necessary changes are in the internal functions which check the validity of the inputs. For the public API, the primary change will be modifying You could finish up the necessary changes to
They are represented as |
Thank you for the detailed explanation!
That makes sense, though I hope some generics features would resolve this. |
Unchanged situation after the recent PRs including #948, but now it's explicitly documented that it's unsupported (for now). |
Hi, thank you for this great library.
I encountered a problem when creating an
ArrayView
with a pointer and negative strides (see PyO3/rust-numpy#151 for the full context).We can do this by converting
&[isize]
to&[usize]
, but this causes panic by a debug assertion when building without--release
flag.So,
new_
. I'm happy to create a PR if you're willing to.usize
.The text was updated successfully, but these errors were encountered: