MBDyn-1.7.3
|
#include <naivewrap.h>
Public Member Functions | |
NaiveSparseSolutionManager (const integer Dim, const doublereal dMP=1.e-9, const ScaleOpt &scale=ScaleOpt()) | |
virtual | ~NaiveSparseSolutionManager (void) |
virtual void | MatrReset (void) |
virtual void | Solve (void) |
virtual MatrixHandler * | pMatHdl (void) const |
virtual MyVectorHandler * | pResHdl (void) const |
virtual MyVectorHandler * | pSolHdl (void) const |
Public Member Functions inherited from SolutionManager | |
SolutionManager (void) | |
virtual | ~SolutionManager (void) |
virtual void | LinkToSolution (VectorHandler &XCurr, VectorHandler &XPrimeCurr) |
virtual void | MatrInitialize (void) |
virtual void | SolveT (void) |
doublereal * | pdSetResVec (doublereal *pd) |
doublereal * | pdSetSolVec (doublereal *pd) |
bool | bGetConditionNumber (doublereal &dCond) const |
Protected Member Functions | |
template<class MH > | |
void | ScaleMatrixAndRightHandSide (MH &mh) |
template<typename MH > | |
MatrixScale< MH > & | GetMatrixScale () |
void | ScaleSolution (void) |
Protected Attributes | |
NaiveMatrixHandler * | A |
MyVectorHandler | VH |
ScaleOpt | scale |
MatrixScaleBase * | pMatScale |
Protected Attributes inherited from SolutionManager | |
LinearSolver * | pLS |
Additional Inherited Members | |
Public Types inherited from SolutionManager | |
enum | ScaleWhen { SCALEW_NEVER = 0, SCALEW_ONCE, SCALEW_ALWAYS } |
enum | ScaleAlgorithm { SCALEA_NONE, SCALEA_UNDEF, SCALEA_ROW_MAX, SCALEA_ROW_SUM, SCALEA_COL_MAX, SCALEA_COL_SUM, SCALEA_LAPACK, SCALEA_ITERATIVE, SCALEA_ROW_MAX_COL_MAX } |
enum | ScaleFlags { SCALEF_DEFAULT = 0x0u, SCALEF_WARN = 0x1u, SCALEF_VERBOSE = 0x2u, SCALEF_COND_NUM_1 = 0x4u, SCALEF_COND_NUM_INF = 0x8u, SCALEF_COND_NUM = SCALEF_COND_NUM_1 | SCALEF_COND_NUM_INF } |
Definition at line 75 of file naivewrap.h.
NaiveSparseSolutionManager::NaiveSparseSolutionManager | ( | const integer | Dim, |
const doublereal | dMP = 1.e-9 , |
||
const ScaleOpt & | scale = ScaleOpt() |
||
) |
Definition at line 151 of file naivewrap.cc.
References A, SolutionManager::ScaleOpt::algorithm, NaiveMatrixHandler::NaiveMatrixHandler(), NaiveMatrixHandler::NaiveSolver, MyVectorHandler::pdGetVec(), LinearSolver::pdSetResVec(), LinearSolver::pdSetSolVec(), SolutionManager::pLS, SAFENEWWITHCONSTRUCTOR, scale, SolutionManager::SCALEA_NONE, SolutionManager::SCALEA_UNDEF, SolutionManager::SCALEW_NEVER, LinearSolver::SetSolutionManager(), VH, and SolutionManager::ScaleOpt::when.
|
virtual |
|
protected |
Definition at line 223 of file naivewrap.cc.
References MatrixScale< T >::Allocate(), pMatScale, and scale.
|
virtual |
Implements SolutionManager.
Reimplemented in NaiveSparsePermSolutionManager< T >.
Definition at line 191 of file naivewrap.cc.
References SolutionManager::pLS, and LinearSolver::Reset().
Referenced by NaiveSparsePermSolutionManager< T >::MatrReset().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 199 of file naivewrap.cc.
References MatrixScaleBase::bGetInitialized(), LinearSolver::bReset(), MatrixScale< T >::ComputeScaleFactors(), SolutionManager::pLS, MatrixScaleBase::Report(), scale, MatrixScale< T >::ScaleMatrix(), MatrixScaleBase::ScaleRightHandSide(), SolutionManager::SCALEW_ALWAYS, SolutionManager::SCALEW_NEVER, VH, and SolutionManager::ScaleOpt::when.
Referenced by Solve().
|
protected |
Definition at line 234 of file naivewrap.cc.
References ASSERT, pMatScale, scale, MatrixScaleBase::ScaleSolution(), SolutionManager::SCALEW_NEVER, VH, and SolutionManager::ScaleOpt::when.
Referenced by Solve().
|
virtual |
Implements SolutionManager.
Reimplemented in NaiveSparsePermSolutionManager< T >.
Definition at line 245 of file naivewrap.cc.
References A, SolutionManager::pLS, ScaleMatrixAndRightHandSide(), ScaleSolution(), and LinearSolver::Solve().
|
mutableprotected |
Definition at line 77 of file naivewrap.h.
Referenced by NaiveSparsePermSolutionManager< T >::NaiveSparsePermSolutionManager(), NaiveSparseSolutionManager(), pMatHdl(), Solve(), and ~NaiveSparseSolutionManager().
|
protected |
Definition at line 81 of file naivewrap.h.
Referenced by GetMatrixScale(), ScaleSolution(), and ~NaiveSparseSolutionManager().
|
protected |
Definition at line 80 of file naivewrap.h.
Referenced by GetMatrixScale(), NaiveSparseSolutionManager(), ScaleMatrixAndRightHandSide(), and ScaleSolution().
|
mutableprotected |
Definition at line 78 of file naivewrap.h.
Referenced by NaiveSparseSolutionManager(), pResHdl(), pSolHdl(), ScaleMatrixAndRightHandSide(), and ScaleSolution().