/** * Performs QR decomposition on A * * @param A not modified. */ public override bool setA(FMatrixRMaj A) { if (A.numRows > maxRows || A.numCols > maxCols) { setMaxSize(A.numRows, A.numCols); } _setA(A); if (!decomposer.decompose(A)) { return(false); } Q.reshape(numRows, numRows, false); R.reshape(numRows, numCols, false); decomposer.getQ(Q, false); decomposer.getR(R, false); return(true); }
/** * Performs QR decomposition on A * * @param A not modified. */ //@Override public override bool setA(ZMatrixRMaj A) { if (A.numRows > maxRows || A.numCols > maxCols) { setMaxSize(A.numRows, A.numCols); } _setA(A); if (!decomposer.decompose(A)) { return(false); } Q.reshape(numRows, numRows); R.reshape(numRows, numCols); decomposer.getQ(Q, false); decomposer.getR(R, false); CommonOps_ZDRM.transposeConjugate(Q, Qt); return(true); }