/** * 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_FDRM(QRPDecomposition_F32 <FMatrixRMaj> decomposition, bool norm2Solution) { this.decomposition = decomposition; this.norm2Solution = norm2Solution; if (internalSolver.modifiesA()) { internalSolver = new LinearSolverSafe <FMatrixRMaj>(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_FDRM(QRPDecomposition_F32 <FMatrixRMaj> decomposition, bool norm2Solution) : base(decomposition, norm2Solution) { }