Diag() public static method

Diags.
public static Diag ( Vector v ) : Matrix
v Vector A variable-length parameters list containing v.
return Matrix
Ejemplo n.º 1
0
 /// <summary>A Vector extension method that diags.</summary>
 /// <param name="v">The v to act on.</param>
 /// <param name="n">The int to process.</param>
 /// <param name="d">The int to process.</param>
 /// <returns>A Matrix.</returns>
 public static Matrix Diag(this Vector v, int n, int d)
 {
     return(Vector.Diag(v, n, d));
 }
Ejemplo n.º 2
0
 /// <summary>A Vector extension method that diags.</summary>
 /// <param name="v">The v to act on.</param>
 /// <returns>A Matrix.</returns>
 public static Matrix Diag(this Vector v)
 {
     return(Vector.Diag(v));
 }