how to make a multi dimensional vector in rust and follow various operations like insertion ,iteration etc...
If you want a "multi-dimensional vector", you probably want ndarray. It is a crate that has support for optimal multi-dimensional arrays. However, I'm not sure if it supports e.g. row insertion - you'd have to write the resize code yourself. cc @bluss in case he knows better.
1 Like
any example code for reference
ndarray
could probably stand to have a hero example or something, but in the mean time, the ArrayBase page covers most of the interesting functionality, with code examples.
Checkout the example or if familiar with numpy, ndarray for numpy users.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.