Math.Net system of linear equations with a 0 value in solution
问题 I am trying to solve a Matrix in Math.Net when one of the actual solutions to the matrix is 0, but I am getting -NaN- as results. Here is an example matrix which has already been reduced for simplicity. 1 0 1 | 10000 0 1 -1 | 1000 0 0 0 | 0 Code example: public void DoExample() { Matrix<double> A = Matrix<double>.Build.DenseOfArray(new double[,] { { 1, 0, 1 }, { 0, 1, -1 }, { 0, 0, 0 }, }); Vector<double> B = Vector<double>.Build.Dense(new double[] { 10000, 1000, 0 }); var result = A.Solve(B)