SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::core::behavior::MultiMatrix< Parent > Class Template Reference

#include <MultiMatrix.h>

Detailed Description

template<class Parent>
class sofa::core::behavior::MultiMatrix< Parent >

Helper class providing a high-level view of underlying linear system matrices.

It is used to convert math-like operations to call to computation methods.

Protected Attributes

Parent * parent
 Solver who is using this matrix. More...
 

Public Member Functions

 MultiMatrix (Parent *parent)
 
 ~MultiMatrix ()
 
void clear ()
 m = 0 More...
 
void reset ()
 m = 0 More...
 
void operator= (const MechanicalMatrix &m)
 m = m*M+b*B+k*K More...
 
void solve (MultiVecDerivId solution, MultiVecDerivId rh)
 

Protected Member Functions

 MultiMatrix (const MultiMatrix< Parent > &)
 Copy-constructor is forbidden. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const MultiMatrix< Parent > &m)
 

Attribute details

template<class Parent >
Parent* sofa::core::behavior::MultiMatrix< Parent >::parent
protected

Solver who is using this matrix.

Constructor details

template<class Parent >
sofa::core::behavior::MultiMatrix< Parent >::MultiMatrix ( const MultiMatrix< Parent > &  )
protected

Copy-constructor is forbidden.

template<class Parent >
sofa::core::behavior::MultiMatrix< Parent >::MultiMatrix ( Parent *  parent)
inline
template<class Parent >
sofa::core::behavior::MultiMatrix< Parent >::~MultiMatrix ( )
inline

Function details

template<class Parent >
void sofa::core::behavior::MultiMatrix< Parent >::clear ( )
inline

m = 0

template<class Parent >
void sofa::core::behavior::MultiMatrix< Parent >::operator= ( const MechanicalMatrix m)
inline

m = m*M+b*B+k*K

template<class Parent >
void sofa::core::behavior::MultiMatrix< Parent >::reset ( )
inline

m = 0

template<class Parent >
void sofa::core::behavior::MultiMatrix< Parent >::solve ( MultiVecDerivId  solution,
MultiVecDerivId  rh 
)
inline

Related details

template<class Parent >
std::ostream& operator<< ( std::ostream &  out,
const MultiMatrix< Parent > &  m 
)
friend