protected static mat ones(int size) { return Matrix.Ones(size, size); } /// <summary>Creates a unit matrix.</summary>