protected static mat rand(int n, int m) { return Matrix.Random(n, m); } /// <summary>Size of a matrix.</summary>