protected static double[] size(double[,] m) { return new double[] { m.GetLength(0), m.GetLength(1) }; } /// <summary>Rank of a matrix.</summary>