Module ojalgo

Interface MatrixDecomposition.Hermitian<N extends Comparable<N>>

All Superinterfaces:
MatrixDecomposition<N>, Structure1D, Structure2D
All Known Subinterfaces:
Cholesky<N>, Eigenvalue<N>, Eigenvalue.Generalised<N>, Eigenvalue.Spectral<N>, LDL<N>
All Known Implementing Classes:
SparseQDLDL
Enclosing interface:
MatrixDecomposition<N extends Comparable<N>>

public static interface MatrixDecomposition.Hermitian<N extends Comparable<N>> extends MatrixDecomposition<N>
Some matrix decompositions are only available with hermitian (symmetric) matrices or different decomposition algorithms could be used depending on if the matrix is hemitian or not.
Author:
apete
  • Method Details

    • checkAndDecompose

      default boolean checkAndDecompose(MatrixStore<N> matrix)
      Absolutely must check if the matrix is hermitian or not. Then, depending on the result different paths can be chosen - compute or not / choose different algorithms...
      Parameters:
      matrix - A matrix to check and then (maybe) decompose
      Returns:
      true if the hermitian check passed and decomposition succeeded; false if not