Package org.flag4j.linalg
Class PositiveDefiniteness
java.lang.Object
org.flag4j.linalg.PositiveDefiniteness
This class contains several methods for determining the positive definiteness of a matrix.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the matrix is positive definite.static boolean
Checks if the matrix is positive definite.static boolean
isPosSemiDef
(CMatrix src) Checks if the matrix is positive semi-definite.static boolean
isPosSemiDef
(Matrix src) Checks if the matrix is positive semi-definite.static boolean
isSymmPosDef
(CMatrix src) Checks if the matrix is symmetric positive definite.static boolean
isSymmPosDef
(Matrix src) Checks if the matrix is symmetric positive definite.
-
Constructor Details
-
PositiveDefiniteness
private PositiveDefiniteness()
-
-
Method Details
-
isPosDef
Checks if the matrix is positive definite. A matrixM
is positive definite iffx
TMx > 0
for any vectorx
, or equivalently, if all eigenvalues are strictly greater than zero.- Parameters:
src
- Matrix to check if it is positive definite.- Returns:
- True if the matrix is positive definite. Otherwise, returns false.
- See Also:
-
isSymmPosDef
Checks if the matrix is symmetric positive definite. A matrixM
is positive definite iffx
TMx > 0
for any vectorx
, or equivalently, if all eigenvalues are strictly greater than zero.- Parameters:
src
- Matrix to check if it is positive definite.- Returns:
- True if the matrix is positive definite. Otherwise, returns false.
- See Also:
-
isPosDef
Checks if the matrix is positive definite. A matrixM
is positive definite iffx
TMx > 0
for any vectorx
, or equivalently, if the matrix is hermitian and all eigenvalues are strictly greater than zero.- Parameters:
src
- Matrix to check if it is positive definite.- Returns:
- True if the matrix is positive definite. Otherwise, returns false.
- See Also:
-
isSymmPosDef
Checks if the matrix is symmetric positive definite. A matrixM
is positive definite iffx
TMx > 0
for any vectorx
, or equivalently, if all eigenvalues are strictly greater than zero.- Parameters:
src
- Matrix to check if it is positive definite.- Returns:
- True if the matrix is positive definite. Otherwise, returns false.
- See Also:
-
isPosSemiDef
Checks if the matrix is positive semi-definite. A matrixM
is positive semi-definite iffx
TMx >= 0
for any vectorx
, or equivalently, if the matrix is symmetric and all eigenvalues are greater than or equal to zero.- Parameters:
src
- Matrix to check if it is positive semi-definite.- Returns:
- True if the matrix is positive semi-definite. Otherwise, returns false.
- See Also:
-
isPosSemiDef
Checks if the matrix is positive semi-definite. A matrixM
is positive semi-definite iffx
TMx >= 0
for any vectorx
, or equivalently, if the matrix is hermitian and all eigenvalues are greater than or equal to zero.- Parameters:
src
- Matrix to check if it is positive semi-definite.- Returns:
- True if the matrix is positive semi-definite. Otherwise, returns false.
- See Also:
-