Logo

Programming-Idioms

History of Idiom 26 > diff from v64 to v65

Edit summary for version 65 by Pacidus:
[Rust] because you want to change the values in the array

Version 64

2019-10-03, 10:38:49

Version 65

2019-11-08, 21:57:53

Idiom #26 Create a 2-dimensional array

Declare and initialize a matrix x having m rows and n columns, containing real numbers.

Illustration

Idiom #26 Create a 2-dimensional array

Declare and initialize a matrix x having m rows and n columns, containing real numbers.

Illustration
Code
let x = vec![vec![0.0f64; N]; M];
Code
let mut x = vec![vec![0.0f64; N]; M];
Demo URL
http://is.gd/w2yN9Y
Demo URL
http://is.gd/w2yN9Y