Im using MathNet.Numerics package for matrix calculation.
For matrix declaration and initialization the expected code is as follows:
Matrix<double> A = DenseMatrix.OfArray(new double[,] {
{1,1,1,1},
{1,2,3,4},
{4,3,2,1}});
In my own code, I have three one-dimensional arrays - xPointsSquared, yPoints, one.
I get the error - "a nested array initializer is expected" when trying to initialize the matrix in this following way,
Matrix<double> A = DenseMatrix.OfArray(new double[,] {
xPointsSquared,
yPoints,
one});