/// <summary>Calculates the condition number of this matrix.</summary>
 /// <returns>The condition number of the matrix.</returns>
 /// <remarks>The condition number is calculated using singular value decomposition.</remarks>
 public virtual T ConditionNumber()
 {
     return(Svd <T> .Create(this, false).ConditionNumber);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Computes the SVD decomposition for a matrix.
 /// </summary>
 /// <param name="matrix">The matrix to factor.</param>
 /// <param name="computeVectors">Compute the singular U and VT vectors or not.</param>
 /// <returns>The SVD decomposition object.</returns>
 public static Svd Svd(this Matrix <double> matrix, bool computeVectors)
 {
     return((Svd)Svd <double> .Create(matrix, computeVectors));
 }
 /// <summary>
 /// Calculates the rank of the matrix
 /// </summary>
 /// <returns>effective numerical rank, obtained from SVD</returns>
 public virtual int Rank()
 {
     return(Svd <T> .Create(this, false).Rank);
 }
 /// <summary>
 /// Computes the SVD decomposition for a matrix.
 /// </summary>
 /// <param name="matrix">The matrix to factor.</param>
 /// <param name="computeVectors">Compute the singular U and VT vectors or not.</param>
 /// <returns>The SVD decomposition object.</returns>
 public static Svd Svd(this Matrix <Complex32> matrix, bool computeVectors)
 {
     return((Svd)Svd <Complex32> .Create(matrix, computeVectors));
 }