Package org.flag4j.linalg
Class Condition
java.lang.Object
org.flag4j.linalg.Condition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
Computes the condition number of this matrix using the 2-norm.static double
Computes the condition number of this matrix using a specified norm.static double
Computes the condition number of this matrix using the 2-norm.static double
Computes the condition number of this matrix using a specified norm.
-
Constructor Details
-
Condition
private Condition()
-
-
Method Details
-
cond
Computes the condition number of this matrix using the 2-norm. Specifically, the condition number is computed as the norm of this matrix multiplied by the norm of the inverse of this matrix.- Parameters:
src
- Matrix to compute the condition number of.- Returns:
- The condition number of this matrix (Assuming 2-norm). This value may be
infinite
.
-
cond
Computes the condition number of this matrix using a specified norm. The condition number of a matrix is defined as the norm of a matrix multiplied by the norm of the inverse of the matrix.- Parameters:
src
- Matrix to compute the condition number of.p
- Specifies the order of the norm to be used when computing the condition number. Commonp
values include:
-p
=Double.POSITIVE_INFINITY
,MatrixNorms.infNorm(Matrix)
.
-p
= 2, The standard matrix 2-norm (the largest singular value).
-p
= -2, The Smallest singular value.
-p
= 1, Maximum absolute row sum.- Returns:
- The condition number of this matrix using the specified norm. This value may be
infinite
.
-
cond
Computes the condition number of this matrix using the 2-norm. Specifically, the condition number is computed as the norm of this matrix multiplied by the norm of the inverse of this matrix.- Parameters:
src
- Matrix to compute the condition number of.- Returns:
- The condition number of this matrix (Assuming 2-norm). This value may be
infinite
.
-
cond
Computes the condition number of this matrix using a specified norm. The condition number of a matrix is defined as the norm of a matrix multiplied by the norm of the inverse of the matrix.- Parameters:
src
- Matrix to compute the condition number of.p
- Specifies the order of the norm to be used when computing the condition number. Commonp
values include:
-p
=Double.POSITIVE_INFINITY
,MatrixNorms.infNorm(CMatrix)
.
-p
= 2, The standard matrix 2-norm (the largest singular value).
-p
= -2, The Smallest singular value.
-p
= 1, Maximum absolute row sum.- Returns:
- The condition number of this matrix using the specified norm. This value may be
infinite
.
-