Class PositiveDefiniteness
java.lang.Object
org.flag4j.linalg.PositiveDefiniteness
This class contains several methods for determining the positive definiteness of a matrix.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isHermPosDef
(CMatrix src) Checks if the matrix is symmetric positive definite.static boolean
isHermPosDef
(Matrix src) Checks if the matrix is symmetric positive definite.static 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.
-
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;false
otherwise.- 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;false
otherwise.- See Also:
-
isHermPosDef
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;false
otherwise.- See Also:
-
isHermPosDef
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;false
otherwise.- 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;false
otherwise.- 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;false
otherwise.- See Also:
-