Class PositiveDefiniteness

java.lang.Object
org.flag4j.linalg.PositiveDefiniteness

public final class PositiveDefiniteness extends Object
This class contains several methods for determining the positive definiteness of a matrix.
  • Method Details

    • isPosDef

      public static boolean isPosDef(Matrix src)
      Checks if the matrix is positive definite. A matrix M is positive definite iff xTMx > 0 for any vector x, 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

      public static boolean isPosDef(CMatrix src)
      Checks if the matrix is positive definite. A matrix M is positive definite iff xTMx > 0 for any vector x, 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

      public static boolean isHermPosDef(Matrix src)
      Checks if the matrix is symmetric positive definite. A matrix M is positive definite iff xTMx > 0 for any vector x, 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

      public static boolean isHermPosDef(CMatrix src)
      Checks if the matrix is symmetric positive definite. A matrix M is positive definite iff xTMx > 0 for any vector x, 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

      public static boolean isPosSemiDef(Matrix src)
      Checks if the matrix is positive semi-definite. A matrix M is positive semi-definite iff xTMx >= 0 for any vector x, 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

      public static boolean isPosSemiDef(CMatrix src)
      Checks if the matrix is positive semi-definite. A matrix M is positive semi-definite iff xTMx >= 0 for any vector x, 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: