示例#1
0
 /// <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));
 }
示例#2
0
 /// <summary> Returns the identity matrix of the given dimension. </summary>
 public static GenericMatrix <T> Identity(int dimension)
 {
     return(GenericMatrix <T> .Diagonal(dimension, 1.0));
 }