How does one idiomatically index elements of an array instance without borrowing the array? Can one just clone the given elements indexed? For example,
let column = matrix.index_axis(ndarray::Axis(1), 0);
takes ownership of the 'matrix' variable. How can I use matrix again, without cloning it? Again, a fairly noob question from a novice rust user!
How does one idiomatically index elements of an array instance without borrowing the array? Can one just clone the given elements indexed? For example,
takes ownership of the 'matrix' variable. How can I use matrix again, without cloning it? Again, a fairly noob question from a novice rust user!