Use the ndarray crate to create and manipulate multi-dimensional arrays for numerical computing in Rust. Add ndarray to your Cargo.toml dependencies, import the arr2 function, and use array indexing syntax to access or modify elements.
use ndarray::arr2;
fn main() {
let mut a = arr2(&[[0, 1], [0, 0]]);
a[[1, 1]] = 1;
println!("{}", a[[0, 1]]);
}