MBDyn-1.7.3
|
#include <naivemh.h>
Classes | |
class | const_iterator |
Protected Member Functions | |
virtual MatrixHandler & | MatMatMul_base (void(MatrixHandler::*op)(integer iRow, integer iCol, const doublereal &dCoef), MatrixHandler &out, const MatrixHandler &in) const |
virtual MatrixHandler & | MatTMatMul_base (void(MatrixHandler::*op)(integer iRow, integer iCol, const doublereal &dCoef), MatrixHandler &out, const MatrixHandler &in) const |
virtual VectorHandler & | MatVecMul_base (void(VectorHandler::*op)(integer iRow, const doublereal &dCoef), VectorHandler &out, const VectorHandler &in) const |
virtual VectorHandler & | MatTVecMul_base (void(VectorHandler::*op)(integer iRow, const doublereal &dCoef), VectorHandler &out, const VectorHandler &in) const |
Protected Attributes | |
integer | iSize |
bool | bOwnsMemory |
doublereal ** | ppdRows |
integer ** | ppiRows |
integer ** | ppiCols |
char ** | ppnonzero |
integer * | piNzr |
integer * | piNzc |
const_iterator | m_end |
Private Member Functions | |
NaiveMatrixHandler (const NaiveMatrixHandler &) | |
Friends | |
class | NaiveSolver |
class | ParNaiveSolver |
class | MultiThreadDataManager |
void * | sum_naive_matrices (void *arg) |
Additional Inherited Members | |
![]() | |
enum | Norm_t { NORM_1, NORM_INF } |
|
private |
Referenced by NaiveSparseSolutionManager::NaiveSparseSolutionManager().
NaiveMatrixHandler::NaiveMatrixHandler | ( | const integer | n, |
NaiveMatrixHandler *const | nmh = 0 |
||
) |
Definition at line 48 of file naivemh.cc.
References ASSERT, bOwnsMemory, iSize, piNzc, piNzr, ppdRows, ppiCols, ppiRows, ppnonzero, and SAFENEWARR.
|
virtual |
Definition at line 109 of file naivemh.cc.
References bOwnsMemory, piNzc, piNzr, ppdRows, ppiCols, ppiRows, ppnonzero, and SAFEDELETEARR.
|
inline |
Definition at line 97 of file naivemh.h.
Referenced by main(), and DataManager::OutputEigNaiveMatrices().
|
inline |
Definition at line 101 of file naivemh.h.
References m_end.
Referenced by main(), and DataManager::OutputEigNaiveMatrices().
|
inlinevirtual |
Implements MatrixHandler.
Definition at line 115 of file naivemh.h.
References iSize.
Referenced by operator()(), and NaivePermMatrixHandler::operator()().
|
inlinevirtual |
Implements MatrixHandler.
Definition at line 111 of file naivemh.h.
References iSize.
Referenced by main(), operator()(), and NaivePermMatrixHandler::operator()().
void NaiveMatrixHandler::MakeCCStructure | ( | std::vector< integer > & | Ai, |
std::vector< integer > & | Ap | ||
) |
|
protectedvirtual |
Reimplemented from MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 375 of file naivemh.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iSize, piNzc, ppdRows, and ppiCols.
|
protectedvirtual |
Reimplemented from MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 398 of file naivemh.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iSize, piNzr, ppdRows, and ppiRows.
|
protectedvirtual |
Reimplemented from MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 440 of file naivemh.cc.
References ASSERT, VectorHandler::iGetSize(), iSize, piNzr, ppdRows, and ppiRows.
|
protectedvirtual |
Reimplemented from MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 422 of file naivemh.cc.
References ASSERT, VectorHandler::iGetSize(), iSize, piNzc, ppdRows, and ppiCols.
|
inlinevirtual |
Implements MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 173 of file naivemh.h.
References ASSERT, iGetNumCols(), iGetNumRows(), ppdRows, ppnonzero, and Zero1.
Referenced by NaivePermMatrixHandler::operator()(), operator+=(), and operator-=().
|
inlinevirtual |
Implements MatrixHandler.
Reimplemented in NaivePermMatrixHandler.
Definition at line 189 of file naivemh.h.
References ASSERT, iGetNumCols(), iGetNumRows(), piNzc, piNzr, ppdRows, ppiCols, ppiRows, and ppnonzero.
|
virtual |
Reimplemented from MatrixHandler.
Definition at line 168 of file naivemh.cc.
References SubMatrixHandler::iGetColIndex(), MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), SubMatrixHandler::iGetRowIndex(), and operator()().
|
virtual |
Reimplemented from MatrixHandler.
Definition at line 224 of file naivemh.cc.
References VariableSubMatrixHandler::eStatus, VariableSubMatrixHandler::FULL, FullSubMatrixHandler::iGetNumCols(), FullSubMatrixHandler::iGetNumRows(), SparseSubMatrixHandler::iNumItems, operator()(), SparseSubMatrixHandler::pdMatm1, FullSubMatrixHandler::piColm1, SparseSubMatrixHandler::piColm1, FullSubMatrixHandler::piRowm1, SparseSubMatrixHandler::piRowm1, FullMatrixHandler::ppdCols, and VariableSubMatrixHandler::SPARSE.
|
virtual |
Reimplemented from MatrixHandler.
Definition at line 195 of file naivemh.cc.
References SubMatrixHandler::iGetColIndex(), MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), SubMatrixHandler::iGetRowIndex(), and operator()().
|
virtual |
Reimplemented from MatrixHandler.
Definition at line 292 of file naivemh.cc.
References VariableSubMatrixHandler::eStatus, VariableSubMatrixHandler::FULL, FullSubMatrixHandler::iGetNumCols(), FullSubMatrixHandler::iGetNumRows(), SparseSubMatrixHandler::iNumItems, operator()(), SparseSubMatrixHandler::pdMatm1, FullSubMatrixHandler::piColm1, SparseSubMatrixHandler::piColm1, FullSubMatrixHandler::piRowm1, SparseSubMatrixHandler::piRowm1, FullMatrixHandler::ppdCols, and VariableSubMatrixHandler::SPARSE.
|
virtual |
Implements MatrixHandler.
Definition at line 151 of file naivemh.cc.
References iSize, piNzc, piNzr, ppiCols, and ppnonzero.
Referenced by StepNIntegrator::Jacobian(), and main().
Implements MatrixHandler.
Definition at line 122 of file naivemh.h.
References MBDYN_EXCEPT_ARGS.
|
friend |
Definition at line 49 of file naivemh.h.
Referenced by NaiveSparseSolutionManager::NaiveSparseSolutionManager().
|
friend |
|
protected |
Definition at line 59 of file naivemh.h.
Referenced by NaiveMatrixHandler(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 58 of file naivemh.h.
Referenced by NaivePermMatrixHandler::const_iterator::const_iterator(), NaivePermMatrixHandler::GetInvPerm(), NaivePermMatrixHandler::GetPerm(), iGetNumCols(), iGetNumRows(), MakeCCStructure(), MatMatMul_base(), NaivePermMatrixHandler::MatMatMul_base(), MatTMatMul_base(), NaivePermMatrixHandler::MatTMatMul_base(), MatTVecMul_base(), NaivePermMatrixHandler::MatTVecMul_base(), MatVecMul_base(), NaivePermMatrixHandler::MatVecMul_base(), NaiveMatrixHandler(), NaivePermMatrixHandler::NaivePermMatrixHandler(), NaiveMatrixHandler::const_iterator::reset(), Reset(), and NaivePermMatrixHandler::const_iterator::reset().
|
protected |
|
protected |
Definition at line 63 of file naivemh.h.
Referenced by NaiveSolver::Factor(), MatMatMul_base(), NaivePermMatrixHandler::MatMatMul_base(), MatVecMul_base(), NaivePermMatrixHandler::MatVecMul_base(), NaiveMatrixHandler(), operator()(), Reset(), NaiveSolver::Solve(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 63 of file naivemh.h.
Referenced by NaivePermMatrixHandler::const_iterator::const_iterator(), NaiveSolver::Factor(), MakeCCStructure(), MatTMatMul_base(), NaivePermMatrixHandler::MatTMatMul_base(), MatTVecMul_base(), NaivePermMatrixHandler::MatTVecMul_base(), NaiveMatrixHandler(), operator()(), NaiveMatrixHandler::const_iterator::reset(), Reset(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 60 of file naivemh.h.
Referenced by NaivePermMatrixHandler::const_iterator::const_iterator(), NaiveSolver::Factor(), MatMatMul_base(), NaivePermMatrixHandler::MatMatMul_base(), MatTMatMul_base(), NaivePermMatrixHandler::MatTMatMul_base(), MatTVecMul_base(), NaivePermMatrixHandler::MatTVecMul_base(), MatVecMul_base(), NaivePermMatrixHandler::MatVecMul_base(), NaiveMatrixHandler(), operator()(), NaiveMatrixHandler::const_iterator::reset(), NaivePermMatrixHandler::const_iterator::reset(), NaiveSolver::Solve(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 61 of file naivemh.h.
Referenced by NaiveSolver::Factor(), MatMatMul_base(), NaivePermMatrixHandler::MatMatMul_base(), MatVecMul_base(), NaivePermMatrixHandler::MatVecMul_base(), NaiveMatrixHandler(), operator()(), Reset(), NaiveSolver::Solve(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 61 of file naivemh.h.
Referenced by NaivePermMatrixHandler::const_iterator::const_iterator(), NaiveSolver::Factor(), MakeCCStructure(), MatTMatMul_base(), NaivePermMatrixHandler::MatTMatMul_base(), MatTVecMul_base(), NaivePermMatrixHandler::MatTVecMul_base(), NaiveMatrixHandler(), operator()(), NaiveMatrixHandler::const_iterator::reset(), NaivePermMatrixHandler::const_iterator::reset(), and ~NaiveMatrixHandler().
|
protected |
Definition at line 62 of file naivemh.h.
Referenced by NaiveSolver::Factor(), NaiveMatrixHandler(), operator()(), Reset(), and ~NaiveMatrixHandler().