SOFA API  59c939c2
Open source framework for multi-physics simuation
sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor Class Reference

#include <EigenBaseSparseMatrix.h>

View this matrix as a MultiMatrix. More...

Inheritance diagram for sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor:

Detailed Description

template<class TReal>
class sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor

View this matrix as a MultiMatrix.

Protected Attributes

ThisMatrixmatrix
 The single matrix. More...
 
MatrixRef matRef
 The accessor to the single matrix. More...
 

Public Member Functions

 MatrixAccessor (ThisMatrix *m=0)
 
 ~MatrixAccessor () override
 
void setMatrix (ThisMatrix *m)
 
ThisMatrixgetMatrix ()
 
const ThisMatrixgetMatrix () const
 
int getGlobalDimension () const override
 
int getGlobalOffset (const core::behavior::BaseMechanicalState *) const override
 
MatrixRef getMatrix (const core::behavior::BaseMechanicalState *) const override
 
InteractionMatrixRef getMatrix (const core::behavior::BaseMechanicalState *, const core::behavior::BaseMechanicalState *) const override
 
- Public Member Functions inherited from sofa::core::behavior::MultiMatrixAccessor
virtual ~MultiMatrixAccessor ()
 
virtual void addMechanicalState (const BaseMechanicalState *mstate)
 
virtual void addMechanicalMapping (BaseMapping *mapping)
 
virtual void addMappedMechanicalState (const BaseMechanicalState *mstate)
 

Attribute details

template<class TReal>
MatrixRef sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::matRef
protected

The accessor to the single matrix.

template<class TReal>
ThisMatrix* sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::matrix
protected

The single matrix.

Constructor details

template<class TReal>
sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::MatrixAccessor ( ThisMatrix m = 0)
inline
template<class TReal>
sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::~MatrixAccessor ( )
inlineoverride

Function details

template<class TReal>
int sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getGlobalDimension ( ) const
inlineoverridevirtual
template<class TReal>
int sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getGlobalOffset ( const core::behavior::BaseMechanicalState ) const
inlineoverridevirtual
template<class TReal>
ThisMatrix* sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getMatrix ( )
inline
template<class TReal>
const ThisMatrix* sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getMatrix ( ) const
inline
template<class TReal>
MatrixRef sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState ) const
inlineoverridevirtual
template<class TReal>
InteractionMatrixRef sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState ,
const core::behavior::BaseMechanicalState  
) const
inlineoverridevirtual
template<class TReal>
void sofa::component::linearsolver::EigenBaseSparseMatrix< TReal >::MatrixAccessor::setMatrix ( ThisMatrix m)
inline