Class QrHouseHolderSolver_MT_FDRB

java.lang.Object
org.ejml.dense.block.linsol.qr.QrHouseHolderSolver_MT_FDRB
All Implemented Interfaces:
org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.FMatrixRBlock,​org.ejml.data.FMatrixRBlock>, org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.FMatrixRBlock>

@Generated("org.ejml.dense.block.linsol.qr.QrHouseHolderSolver_FDRB")
public class QrHouseHolderSolver_MT_FDRB
extends Object
implements org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.FMatrixRBlock>

A solver for QRDecompositionHouseholder_MT_FDRB. 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.

  • Field Summary

    Fields
    Modifier and Type Field Description
    protected QRDecompositionHouseholder_MT_FDRB decomposer  
    protected org.ejml.data.FMatrixRBlock QR  
  • Constructor Summary

    Constructors
    Constructor Description
    QrHouseHolderSolver_MT_FDRB()  
  • Method Summary

    Modifier and Type Method Description
    org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.FMatrixRBlock> getDecomposition()  
    void invert​(org.ejml.data.FMatrixRBlock 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.FMatrixRBlock A)
    Computes the QR decomposition of A and store the results in A.
    void solve​(org.ejml.data.FMatrixRBlock B, org.ejml.data.FMatrixRBlock X)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • QrHouseHolderSolver_MT_FDRB

      public QrHouseHolderSolver_MT_FDRB()
  • Method Details

    • setA

      public boolean setA​(org.ejml.data.FMatrixRBlock 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.FMatrixRBlock,​org.ejml.data.FMatrixRBlock>
      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.FMatrixRBlock,​org.ejml.data.FMatrixRBlock>
      Returns:
      Solutions quality.
    • solve

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

      public void invert​(org.ejml.data.FMatrixRBlock A_inv)
      Invert by solving for against an identity matrix.
      Specified by:
      invert in interface org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.FMatrixRBlock>
      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.FMatrixRBlock,​org.ejml.data.FMatrixRBlock>
    • modifiesB

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

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