Class QRDecomposition_DDRB_to_DDRM
java.lang.Object
org.ejml.dense.row.decomposition.BaseDecomposition_DDRB_to_DDRM
org.ejml.dense.row.decomposition.qr.QRDecomposition_DDRB_to_DDRM
- All Implemented Interfaces:
DecompositionInterface<DMatrixRMaj>
,QRDecomposition<DMatrixRMaj>
public class QRDecomposition_DDRB_to_DDRM
extends BaseDecomposition_DDRB_to_DDRM
implements QRDecomposition<DMatrixRMaj>
Wrapper that allows
QRDecomposition
(DMatrixRBlock) to be used
as a QRDecomposition
(DMatrixRMaj).-
Field Summary
Fields inherited from class org.ejml.dense.row.decomposition.BaseDecomposition_DDRB_to_DDRM
Ablock, alg, blockLength, workspace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetQ
(@Nullable DMatrixRMaj Q, boolean compact) Returns the Q matrix from the decomposition.getR
(@Nullable DMatrixRMaj R, boolean compact) Returns the R matrix from the decomposition.Methods inherited from class org.ejml.dense.row.decomposition.BaseDecomposition_DDRB_to_DDRM
convertBlockToRow, decompose, inputModified
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ejml.interfaces.decomposition.DecompositionInterface
decompose, inputModified
-
Constructor Details
-
QRDecomposition_DDRB_to_DDRM
public QRDecomposition_DDRB_to_DDRM()
-
-
Method Details
-
getQ
Description copied from interface:QRDecomposition
Returns the Q matrix from the decomposition. Should only be called after
DecompositionInterface.decompose(org.ejml.data.Matrix)
has been called.- Specified by:
getQ
in interfaceQRDecomposition<DMatrixRMaj>
- Parameters:
Q
- (Input) Storage for Q. Reshaped to correct size automatically. If null a new matrix is created.compact
- If true an m by n matrix is created, otherwise n by n.- Returns:
- The Q matrix.
-
getR
Description copied from interface:QRDecomposition
Returns the R matrix from the decomposition. Should only be called after
DecompositionInterface.decompose(org.ejml.data.Matrix)
has been.If setZeros is true then an n × m matrix is required and all the elements are set. If setZeros is false then the matrix must be at least m × m and only the upper triangular elements are set.
- Specified by:
getR
in interfaceQRDecomposition<DMatrixRMaj>
- Parameters:
R
- (Input) Storage for R. Reshaped to correct size automatically. If null a new matrix is created.compact
- If true only the upper triangular elements are set- Returns:
- The R matrix.
-