Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Definition of matrices. How do I do a matrix declaration, matrix memory allocation, and matrix initialization as a three step process?

$
0
0

@crjimenezr wrote:

Hi everyone, my question is the following:

How do I do a matrix declaration, matrix memory allocation, and matrix initialization as a three step process? The examples provided do it like:

Matrix<double> m = Matrix<double>.Build.Random(3, 4); 

But in the example above all the three steps (declaration, memory allocation, and initialization) are done at once.

Other way they do it is:

var A = Matrix<double>.Build.Dense(5,5);

But here again all the three steps are done (declaration, memory allocation, and initialization) as one step.

Thanks for your help.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles