SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::linearalgebra::matrix_bloc_traits< T, IndexType > Class Template Reference

#include <matrix_bloc_traits.h>

Static Public Member Functions

static Realv (Block &b, IndexType row, IndexType col)
 
static const Realv (const Block &b, IndexType row, IndexType col)
 
static void vset (Block &b, int row, int col, Real val)
 
static void vadd (Block &b, int row, int col, Real val)
 
static void clear (Block &b)
 
static bool empty (const Block &b)
 
static void invert (Block &result, const Block &b)
 
static void split_row_index (IndexType &index, IndexType &modulo)
 
static void split_col_index (IndexType &index, IndexType &modulo)
 
template<class TSubBlock >
static void subBlock (const Block &b, IndexType row, IndexType col, TSubBlock &subBlock)
 
static sofa::linearalgebra::BaseMatrix::ElementType getElementType ()
 

Function details

◆ clear()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::clear ( Block b)
inlinestatic

◆ empty()

template<class T , typename IndexType >
static bool sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::empty ( const Block b)
inlinestatic

◆ getElementType()

template<class T , typename IndexType >
static sofa::linearalgebra::BaseMatrix::ElementType sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::getElementType ( )
inlinestatic

◆ invert()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::invert ( Block result,
const Block b 
)
inlinestatic

◆ split_col_index()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::split_col_index ( IndexType &  index,
IndexType &  modulo 
)
inlinestatic

◆ split_row_index()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::split_row_index ( IndexType &  index,
IndexType &  modulo 
)
inlinestatic

◆ subBlock()

template<class T , typename IndexType >
template<class TSubBlock >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::subBlock ( const Block b,
IndexType  row,
IndexType  col,
TSubBlock &  subBlock 
)
inlinestatic

◆ v() [1/2]

template<class T , typename IndexType >
static Real& sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::v ( Block b,
IndexType  row,
IndexType  col 
)
inlinestatic

◆ v() [2/2]

template<class T , typename IndexType >
static const Real& sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::v ( const Block b,
IndexType  row,
IndexType  col 
)
inlinestatic

◆ vadd()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::vadd ( Block b,
int  row,
int  col,
Real  val 
)
inlinestatic

◆ vset()

template<class T , typename IndexType >
static void sofa::linearalgebra::matrix_bloc_traits< T, IndexType >::vset ( Block b,
int  row,
int  col,
Real  val 
)
inlinestatic

Enum details

◆ anonymous enum

template<class T , typename IndexType >
anonymous enum
Enumerator
NL 

◆ anonymous enum

template<class T , typename IndexType >
anonymous enum
Enumerator
NC