/// <summary>Returns a square diagonal matrix of the given dimension.</summary> public static GenericMatrix <T> Diagonal(int dimension, T value) { return(GenericMatrix <T> .Diagonal(dimension, dimension, value)); }
/// <summary> Returns the identity matrix of the given dimension. </summary> public static GenericMatrix <T> Identity(int dimension) { return(GenericMatrix <T> .Diagonal(dimension, 1.0)); }