How can I initialize a 3D matrix in Rust given the number number of component in x, y, z and a given nuber for intialization (let's say 1.0). At the moment I use no librares:
let nx: usize = 100; // y-resolution
let nl: usize = 4000; // z-resolution
let f = vec![vec![vec![1.0; nl]; ny]; nx]; ```
But I think there should be a more efficient way in the "nalgebra" library, but everything seems really cumbersome. Thanks in advance.