SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::core::behavior::MatrixAccessorCompat Class Reference

#include <MatrixAPICompatibility.h>

Inheritance diagram for sofa::core::behavior::MatrixAccessorCompat:

Detailed Description

This class exists only for compatibility reasons. To be removed once the deprecated API addKToMatrix and addMToMatrix is removed

Public Attributes

std::map< sofa::type::fixed_array< const sofa::core::behavior::BaseMechanicalState *, 2 >, std::shared_ptr< linearalgebra::BaseMatrix > > matrixMap
 

Public Member Functions

MatrixRef getMatrix (const sofa::core::behavior::BaseMechanicalState *mstate) const override
 
InteractionMatrixRef getMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2) const override
 
void setMatrix (sofa::core::behavior::BaseMechanicalState *mstate1, sofa::core::behavior::BaseMechanicalState *mstate2, std::shared_ptr< linearalgebra::BaseMatrix > matrix)
 
- Public Member Functions inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
 DefaultMultiMatrixAccessor ()
 
 ~DefaultMultiMatrixAccessor () override
 
virtual void clear ()
 
virtual void setGlobalMatrix (linearalgebra::BaseMatrix *matrix)
 
void addMechanicalState (const sofa::core::behavior::BaseMechanicalState *mstate) override
 
void addMechanicalMapping (sofa::core::BaseMapping *mapping) override
 
void addMappedMechanicalState (const sofa::core::behavior::BaseMechanicalState *mstate) override
 
virtual void setupMatrices ()
 
Index getGlobalDimension () const override
 
int getGlobalOffset (const sofa::core::behavior::BaseMechanicalState *mstate) const override
 
virtual void computeGlobalMatrix ()
 
void setDoPrintInfo (bool value)
 
- Public Member Functions inherited from sofa::core::behavior::MultiMatrixAccessor
virtual ~MultiMatrixAccessor ()
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
bool m_doPrintInfo {false}
 
linearalgebra::BaseMatrixglobalMatrix {nullptr}
 
Index globalDim {0}
 
std::map< const sofa::core::behavior::BaseMechanicalState *, unsigned int > realStateOffsets
 
std::map< const sofa::core::behavior::BaseMechanicalState *, linearalgebra::BaseMatrix * > mappedMatrices
 
std::map< const sofa::core::behavior::BaseMechanicalState *, MatrixRefdiagonalStiffnessBloc
 
std::map< std::pair< const sofa::core::behavior::BaseMechanicalState *, const sofa::core::behavior::BaseMechanicalState * >, InteractionMatrixRefinteractionStiffnessBloc
 
std::vector< sofa::core::BaseMapping * > mappingList
 
- Static Public Member Functions inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
static linearalgebra::BaseMatrixcreateMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2)
 
static linearalgebra::BaseMatrixcreateMatrixImpl (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2, bool doPrintInfo)
 

Attribute details

◆ matrixMap

std::map< sofa::type::fixed_array<const sofa::core::behavior::BaseMechanicalState*, 2>, std::shared_ptr<linearalgebra::BaseMatrix> > sofa::core::behavior::MatrixAccessorCompat::matrixMap

Function details

◆ getMatrix() [1/2]

MatrixRef sofa::core::behavior::MatrixAccessorCompat::getMatrix ( const sofa::core::behavior::BaseMechanicalState mstate) const
inlineoverridevirtual

◆ getMatrix() [2/2]

InteractionMatrixRef sofa::core::behavior::MatrixAccessorCompat::getMatrix ( const sofa::core::behavior::BaseMechanicalState mstate1,
const sofa::core::behavior::BaseMechanicalState mstate2 
) const
inlineoverridevirtual

◆ setMatrix()

void sofa::core::behavior::MatrixAccessorCompat::setMatrix ( sofa::core::behavior::BaseMechanicalState mstate1,
sofa::core::behavior::BaseMechanicalState mstate2,
std::shared_ptr< linearalgebra::BaseMatrix matrix 
)
inline