SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::component::linearsolver::BlocMatrixWriter< TBloc > Class Template Reference

#include <BlocMatrixWriter.h>

Detailed Description

template<typename TBloc>
class sofa::component::linearsolver::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::defaulttype::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

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

Enum details

template<typename TBloc >
anonymous enum
Enumerator
NL 
template<typename TBloc >
anonymous enum
Enumerator
NC