Dakota
Version
Explore and Predict with Confidence
|
The LinearSolverBase class serves as an API for derived solvers. More...
Public Types | |
enum | SOLVER_TYPE { CHOLESKY, EQ_CONS_LEAST_SQ_REGRESSION, LASSO_REGRESSION, LEAST_ANGLE_REGRESSION, LU, ORTHOG_MATCH_PURSUIT, QR_LEAST_SQ_REGRESSION, SVD_LEAST_SQ_REGRESSION } |
How best to Doxygenate class enums? RWH. | |
Public Member Functions | |
LinearSolverBase () | |
Constructor. | |
~LinearSolverBase () | |
Destructor. | |
virtual bool | is_factorized () const |
Query to determine if the matrix of the solver has been factored. | |
virtual void | factorize (const MatrixXd &A) |
Perform the matrix factorization for the linear solver matrix. More... | |
virtual void | solve (const MatrixXd &A, const MatrixXd &b, MatrixXd &x) |
Find a solution to linear problem. More... | |
virtual void | solve (const MatrixXd &b, MatrixXd &x) |
Find a solution to linear problem where the LHS is already factorized. More... | |
Static Public Member Functions | |
static SOLVER_TYPE | solver_type (const std::string &solver_name) |
Convert solver name to enum type. More... | |
The LinearSolverBase class serves as an API for derived solvers.
|
static |
Convert solver name to enum type.
[in] | solver_name | LinearSolverBase name to map |
References dakota::util::type_name_bimap.
Referenced by PolynomialRegression::build().
|
virtual |
Perform the matrix factorization for the linear solver matrix.
[in] | A | The incoming matrix to factorize. |
Reimplemented in CholeskySolver, QRSolver, SVDSolver, and LUSolver.
References dakota::silence_unused_args().
Find a solution to linear problem.
[in] | A | The linear system left-hand-side matrix. |
[in] | b | The linear system right-hand-side (multi-)vector. |
[in] | x | The linear system solution (multi-)vector. |
Reimplemented in CholeskySolver, QRSolver, SVDSolver, and LUSolver.
References dakota::silence_unused_args().
Find a solution to linear problem where the LHS is already factorized.
[in] | b | The linear system right-hand-side (multi-)vector. |
[in] | x | The linear system solution (multi-)vector. |
Reimplemented in CholeskySolver, QRSolver, SVDSolver, and LUSolver.
References dakota::silence_unused_args().