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

New Post: Numerics 3.0 matrix construction syntax

$
0
0
Sorry if this is a dumb question...

I would like to upgrade from an older version to current Numerics library.
I have lots of code of the form:

        double[][] ActualGaps = new double[10][];
        // ... fill in ActualGaps
        Matrix mB = new Matrix(ActualGaps); //create B from 10 row, 1 column array
New version of Numerics requires something like

        Matrix<double> mB = new Matrix(ActualGaps); //create B from 10 row, 1 column array
But that's still not correct; right side generates error:

  Error 1   Using the generic type 'MathNet.Numerics.LinearAlgebra.Matrix<T>' requires 1 type arguments
What's the correct syntax?

Thanks!

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>