So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
|
#include <KrylovMethods.hpp>
Public Types | |
typedef Method< Matrix, Preconditioner, Traits > | Derived |
typedef LinearSolverBase< Derived > | Base |
typedef Traits::Scalar | Scalar |
typedef Signal< unsigned, Scalar > | SignalType |
enum | |
typedef BlockTraits< typename LinearSolverTraits< Method < Matrix, Preconditioner, Traits > >::MatrixType > | UnderlyingBlockTraits |
Public Member Functions | |
KrylovSolverBase (const Matrix &A, unsigned maxIters, Scalar tol, const Preconditioner *P, const SignalType *callback) | |
template<typename RhsT > | |
LinearSolverTraits< Derived > ::template Result< RhsT > ::Type | solve (const RhsT &rhs) const |
Returns the solution x of the linear system M * x = rhs . | |
template<typename ResT , typename RhsT > | |
Scalar | solve (const RhsT &rhs, ResT &x) const |
Returns the solution x of the linear system M * x = rhs . | |
Derived & | parallelizeRhs (bool parallelize=true) |
Whether to process multiple rhs in parallel. | |
Derived & | enableResCaching (bool doCache=true) |
Whether to enable caching of solve(rhs) result for warmstarting purposes. More... | |
const Method< Matrix, Preconditioner, Traits > & | derived () const |
Method< Matrix, Preconditioner, Traits > & | derived () |
Public Attributes | |
const Matrix * | m_A |
const Preconditioner * | m_P |
const SignalType * | m_callback |
Scalar | m_tol |
unsigned | m_maxIters |
Protected Attributes | |
bool | m_parallelizeRhs |
bool | m_enableResCaching |
Base class for Krylov solvers implementations
Derived& bogus::krylov::KrylovSolverBase< Method, Matrix, Preconditioner, Traits >::enableResCaching | ( | bool | doCache = true | ) |
Whether to enable caching of solve(rhs) result for warmstarting purposes.