Class AdjLinearSolverQr_DDRM

java.lang.Object
All Implemented Interfaces:
AdjustableLinearSolver_DDRM, org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRMaj,​org.ejml.data.DMatrixRMaj>, org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRMaj>

public class AdjLinearSolverQr_DDRM
extends LinearSolverQr_DDRM
implements AdjustableLinearSolver_DDRM
A solver for QR decomposition that can efficiently modify the previous decomposition when data is added or removed.
  • Constructor Details

  • Method Details

    • setMaxSize

      public void setMaxSize​(int maxRows, int maxCols)
      Description copied from class: LinearSolverQr_DDRM
      Changes the size of the matrix it can solve for
      Overrides:
      setMaxSize in class LinearSolverQr_DDRM
      Parameters:
      maxRows - Maximum number of rows in the matrix it will decompose.
      maxCols - Maximum number of columns in the matrix it will decompose.
    • getA

      public org.ejml.data.DMatrixRMaj getA()
      Compute the A matrix from the Q and R matrices.
      Overrides:
      getA in class LinearSolverAbstract_DDRM
      Returns:
      The A matrix.
    • addRowToA

      public boolean addRowToA​(double[] A_row, int rowIndex)
      Description copied from interface: AdjustableLinearSolver_DDRM
      Adds a row to A. This has the same effect as creating a new A and calling LinearSolver.setA(S).
      Specified by:
      addRowToA in interface AdjustableLinearSolver_DDRM
      Parameters:
      A_row - The row in A.
      rowIndex - Where the row appears in A.
      Returns:
      if it succeeded or not.
    • removeRowFromA

      public boolean removeRowFromA​(int index)
      Description copied from interface: AdjustableLinearSolver_DDRM
      Removes a row from A. This has the same effect as creating a new A and calling LinearSolver.setA(S).
      Specified by:
      removeRowFromA in interface AdjustableLinearSolver_DDRM
      Parameters:
      index - which row is removed from A.
      Returns:
      If it succeeded or not.