Class QrHouseHolderSolver_DDRB

  • All Implemented Interfaces:
    org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>, org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRBlock>

    public class QrHouseHolderSolver_DDRB
    extends java.lang.Object
    implements org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRBlock>

    A solver for QRDecompositionHouseholder_DDRB. Systems are solved for using the standard QR decomposition method, sketched below.

    A = Q*R
    A*x = b
    Q*R*x = b
    R*x = y = QTb
    x = R-1y

    Where A is the m by n matrix being decomposed. Q is an orthogonal matrix. R is upper triangular matrix.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.DMatrixRBlock> getDecomposition()  
      void invert​(org.ejml.data.DMatrixRBlock A_inv)
      Invert by solving for against an identity matrix.
      boolean modifiesA()  
      boolean modifiesB()  
      double quality()
      Computes the quality using diagonal elements the triangular R matrix in the QR decomposition.
      boolean setA​(org.ejml.data.DMatrixRBlock A)
      Computes the QR decomposition of A and store the results in A.
      void solve​(org.ejml.data.DMatrixRBlock B, org.ejml.data.DMatrixRBlock X)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QrHouseHolderSolver_DDRB

        public QrHouseHolderSolver_DDRB()
    • Method Detail

      • setA

        public boolean setA​(org.ejml.data.DMatrixRBlock A)
        Computes the QR decomposition of A and store the results in A.
        Specified by:
        setA in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>
        Parameters:
        A - The A matrix in the linear equation. Modified. Reference saved.
        Returns:
        true if the decomposition was successful.
      • quality

        public double quality()
        Computes the quality using diagonal elements the triangular R matrix in the QR decomposition.
        Specified by:
        quality in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>
        Returns:
        Solutions quality.
      • solve

        public void solve​(org.ejml.data.DMatrixRBlock B,
                          org.ejml.data.DMatrixRBlock X)
        Specified by:
        solve in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>
      • invert

        public void invert​(org.ejml.data.DMatrixRBlock A_inv)
        Invert by solving for against an identity matrix.
        Specified by:
        invert in interface org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRBlock>
        Parameters:
        A_inv - Where the inverted matrix saved. Modified.
      • modifiesA

        public boolean modifiesA()
        Specified by:
        modifiesA in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>
      • modifiesB

        public boolean modifiesB()
        Specified by:
        modifiesB in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>
      • getDecomposition

        public org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.DMatrixRBlock> getDecomposition()
        Specified by:
        getDecomposition in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,​org.ejml.data.DMatrixRBlock>