Documentation of 'org.ejml.alg.dense.decomposition.chol.CholeskyDecompositionCommon_D64' Java class
CholeskyDecompositionCommon_D64
org.ejml.alg.dense.decomposition.chol

Class CholeskyDecompositionCommon_D64

    • Constructor Detail

      • CholeskyDecompositionCommon_D64

        public CholeskyDecompositionCommon_D64(boolean lower)
        Specifies if a lower or upper variant should be constructed.
        Parameters:
        lower - should a lower or upper triangular matrix be used.
    • Method Detail

      • setExpectedMaxSize

        public void setExpectedMaxSize(int numRows,
                                       int numCols)
      • isLower

        public boolean isLower()
        If true the decomposition was for a lower triangular matrix. If false it was for an upper triangular matrix.
        Specified by:
        isLower in interface CholeskyDecomposition<DenseMatrix64F>
        Returns:
        True if lower, false if upper.
      • decompose

        public boolean decompose(DenseMatrix64F mat)

        Performs Choleksy decomposition on the provided matrix.

        If the matrix is not positive definite then this function will return false since it can't complete its computations. Not all errors will be found. This is an efficient way to check for positive definiteness.

        Specified by:
        decompose in interface DecompositionInterface<DenseMatrix64F>
        Parameters:
        mat - A symmetric positive definite matrix with n <= widthMax.
        Returns:
        True if it was able to finish the decomposition.
      • getT

        public DenseMatrix64F getT(DenseMatrix64F T)
        Description copied from interface: CholeskyDecomposition

        Returns the triangular matrix from the decomposition.

        If an input is provided that matrix is used to write the results to. Otherwise a new matrix is created and the results written to it.

        Specified by:
        getT in interface CholeskyDecomposition<DenseMatrix64F>
        Parameters:
        T - If not null then the decomposed matrix is written here.
        Returns:
        A lower or upper triangular matrix.
      • getT

        public DenseMatrix64F getT()
        Returns the triangular matrix from the decomposition.
        Returns:
        A lower or upper triangular matrix.
      • _getVV

        public double[] _getVV()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.