SOFA API  1df67014
Open source framework for multi-physics simuation
sofa::core::behavior::BlocMatrixWriter< TBloc > Class Template Reference

#include <BlocMatrixWriter.h>

Detailed Description

template<typename TBloc>
class sofa::core::behavior::BlocMatrixWriter< TBloc >

This class is a helper to efficiently implement addKToMatrix in forcefields (and is could later be used for mapping, etc.) See TriangularFEMForceFieldOptim for an example.

Classes

class  BaseMatrixWriter
 
class  BlocBaseMatrixWriter
 
class  BlocCRSMatrixWriter
 
class  CRSMatrixWriter
 
struct  DispatcherForceField_addKToMatrix
 

Public Member Functions

template<class Dispatcher >
void apply (Dispatcher &dispatch, sofa::linearalgebra::BaseMatrix *m, unsigned int offsetL, unsigned int offsetC)
 
template<class FF >
void addKToMatrix (FF *main, const sofa::core::MechanicalParams *mparams, sofa::core::behavior::MultiMatrixAccessor::MatrixRef r)
 

Function details

◆ addKToMatrix()

template<typename TBloc >
template<class FF >
void sofa::core::behavior::BlocMatrixWriter< TBloc >::addKToMatrix ( FF *  main,
const sofa::core::MechanicalParams mparams,
sofa::core::behavior::MultiMatrixAccessor::MatrixRef  r 
)
inline

◆ apply()

template<typename TBloc >
template<class Dispatcher >
void sofa::core::behavior::BlocMatrixWriter< TBloc >::apply ( Dispatcher &  dispatch,
sofa::linearalgebra::BaseMatrix m,
unsigned int  offsetL,
unsigned int  offsetC 
)
inline

Enum details

◆ anonymous enum

template<typename TBloc >
anonymous enum
Enumerator
NL 

◆ anonymous enum

template<typename TBloc >
anonymous enum
Enumerator
NC