I have the following code got from this site as a download from here. The full path after the zip file is extracted would be some thing like E:\Csharp2Dand3DTestbed\GraphicsBook\LA\LA\MatrixTransform2.cs
protected static double[,] MatrixInverse(double[,] mat)
{
Matrix m = new Matrix(mat);
Matrix k = m.Inverse();
return k;
}
But that does not compile. I see from here that I need to do something like
protected static double[,] MatrixInverse(double[,] mat)
{
Matrix<double> m = Matrix<double>.Build.WhatHere(???)(3, 4); // How with existing matrix
Matrix k = m.Inverse();
return k;
}
Can someone please guide me. I am not able to go further. I am using the latest version of the Math.NET Numerics