/** * Configures internal parameters. * * @param decomposition Used to solve the linear system. * @param norm2Solution If true then the optimal 2-norm solution will be computed for degenerate systems. */ protected BaseLinearSolverQrp_DDRM(QRPDecomposition_F64 <DMatrixRMaj> decomposition, bool norm2Solution) { this.decomposition = decomposition; this.norm2Solution = norm2Solution; if (internalSolver.modifiesA()) { internalSolver = new LinearSolverSafe <DMatrixRMaj>(internalSolver); } }
/** * Configure and provide decomposition * * @param decomposition Decomposition used. * @param norm2Solution If true the basic solution will be returned, false the minimal 2-norm solution. */ public SolvePseudoInverseQrp_DDRM(QRPDecomposition_F64 <DMatrixRMaj> decomposition, bool norm2Solution) : base(decomposition, norm2Solution) { }