Logo

Programming-Idioms

History of Idiom 26 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-20, 10:15:37

Version 7

2015-08-20, 15:37:16

Idiom #26 Create a 2-dimensional array

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

Idiom #26 Create a 2-dimensional array

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

Code
auto x = new double[][](m, n);
Comments bubble
The matrix elements will automatically be initialized to NaN.