Windowed Slicing As an NDarray Macro? #1363
Unanswered
GabrielaSNC
asked this question in
Q&A
Replies: 1 comment
-
I can't help you much with the code, but I do have some comments.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings, everyone.
I am new to Rust and want to draft my own window-slicing macro akin to the ndarrays existing s! Slice macro. My Goal is to return a view of the existing array centered around the provided index of any n-dimensional array and, if possible, pad the returned view with a default padding value for literal edge cases. Although a naive first attempt at drafting this declarative macro. I want to illustrate the concept, and seek guidance on where to go next. In all likelihood, this should be a function and not a macro; that said, I am drafting a series of declarative macros to expand my understanding of Rust's array package.
All constructive feedback is welcome.
Beta Was this translation helpful? Give feedback.
All reactions