Logo

Programming-Idioms

History of Idiom 26 > diff from v45 to v46

Edit summary for version 46 by feng:
New Scala implementation by user [feng]

Version 45

2018-11-09, 14:07:44

Version 46

2018-11-29, 01:42:45

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
val matrix = Array.ofDim[Double](m,n)