protected static mat inv(double[,] matrix) { return Matrix.Inverse(matrix); } /// <summary>Inverts a matrix.</summary>