using DotNumerics.LinearAlgebra;
using DotNumerics;
public void LinearAlgebraSolve()
{
//using DotNumerics.LinearAlgebra;
//using DotNumerics;
Matrix A = new Matrix(3, 3);
A[0, 0] = 2; A[0, 1] = 5; A[0, 2] = 3;
A[1, 0] = 1; A[1, 1] = 5; A[1, 2] = 7;
A[2, 0] = 8; A[2, 1] = 2; A[2, 2] = 3;
Matrix B = new Matrix(3, 1);
B[0, 0] = 5;
B[1, 0] = 3;
B[2, 0] = 8;
LinearEquations leq = new LinearEquations();
Matrix X = leq.Solve(A, B);
Matrix AXmB = A * X - B;
}