Replies: 1 comment 5 replies
-
Reading it, it looks like it has column stride of 1 and row stride of 2, which should be possible as an ArrayView and denied for ArrayViewMut - not sure if the ArrayView constructors that take strides allow it, or if they need to be changed to allow this (it's not safe for mutable views since elements overlap.) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Having an array like
[0, 1, 2, 3, 4, 5, 6]
, is it possible to create an array like the one below, without cloning the original (thus I want an ArrayView)?Note that the result is just a combination (stack) of views from the first array, taking a step of 2 between each element.
Beta Was this translation helpful? Give feedback.
All reactions