SOFA API  6dc60b15
Open source framework for multi-physics simuation
sofa::component::linearsolver::SingleMatrixAccessor Class Reference

#include <SingleMatrixAccessor.h>

Inheritance diagram for sofa::component::linearsolver::SingleMatrixAccessor:

Detailed Description

Special case to access a single square matrix.

Protected Attributes

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

Public Member Functions

 SingleMatrixAccessor (BaseMatrix *m=nullptr)
 
 ~SingleMatrixAccessor () override
 
void setMatrix (BaseMatrix *m)
 
BaseMatrixgetMatrix ()
 
const BaseMatrixgetMatrix () const
 
BaseMatrix::Index 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 *mstate1, const core::behavior::BaseMechanicalState *mstate2) 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

MatrixRef sofa::component::linearsolver::SingleMatrixAccessor::matRef
protected

The accessor to the single matrix.

BaseMatrix* sofa::component::linearsolver::SingleMatrixAccessor::matrix
protected

The single matrix.

Constructor details

sofa::component::linearsolver::SingleMatrixAccessor::SingleMatrixAccessor ( BaseMatrix m = nullptr)
inline
sofa::component::linearsolver::SingleMatrixAccessor::~SingleMatrixAccessor ( )
override

Function details

BaseMatrix::Index sofa::component::linearsolver::SingleMatrixAccessor::getGlobalDimension ( ) const
inlineoverridevirtual
int sofa::component::linearsolver::SingleMatrixAccessor::getGlobalOffset ( const core::behavior::BaseMechanicalState ) const
inlineoverridevirtual
BaseMatrix* sofa::component::linearsolver::SingleMatrixAccessor::getMatrix ( )
inline
const BaseMatrix* sofa::component::linearsolver::SingleMatrixAccessor::getMatrix ( ) const
inline
SingleMatrixAccessor::MatrixRef sofa::component::linearsolver::SingleMatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState ) const
overridevirtual
SingleMatrixAccessor::InteractionMatrixRef sofa::component::linearsolver::SingleMatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState mstate1,
const core::behavior::BaseMechanicalState mstate2 
) const
overridevirtual
void sofa::component::linearsolver::SingleMatrixAccessor::setMatrix ( BaseMatrix m)