Warning
This post was published 56 days ago. The information described in this article may have changed.
I am trying to implement a whole bunch of generic functions, using ndarray, that all should
Array::zeros()
does, so as either a usize
or an n-tuple of usize
Array1
, but since i'm translating MATLAB code I really need it to work for any size, so I guess something like -> Array<T, IxDyn>
?shape: S
with S : Into<IxDyn>
, but so far all my attempts have been rejected by the compiler.5 posts - 2 participants
🏷️ rust_feed