SOFA API  f37305c1
Open source framework for multi-physics simuation
sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector > Class Template Reference

#include <MatrixLinearSolver.h>

Inheritance diagram for sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >:

Public Member Functions

void projectForceInConstraintSpace (linearalgebra::BaseVector *r, const linearalgebra::BaseVector *f)
 
JMatrixTypegetLocalJ ()
 
JMatrixTypegetLocalJ (linearalgebra::BaseMatrix *J)
 
ResMatrixTypegetLocalRes (linearalgebra::BaseMatrix *R)
 
void addLocalRes (linearalgebra::BaseMatrix *)
 

Protected Member Functions

template<typename MReal >
JMatrixTypeconvertMatrix (const linearalgebra::SparseMatrix< MReal > &inputMatrix)
 

Function details

◆ addLocalRes()

template<class TVector >
void sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::addLocalRes ( linearalgebra::BaseMatrix )
inline

◆ convertMatrix()

template<class TVector >
template<typename MReal >
JMatrixType* sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::convertMatrix ( const linearalgebra::SparseMatrix< MReal > &  inputMatrix)
inlineprotected

◆ getLocalJ() [1/2]

template<class TVector >
JMatrixType* sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::getLocalJ ( )
inline

◆ getLocalJ() [2/2]

template<class TVector >
JMatrixType* sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::getLocalJ ( linearalgebra::BaseMatrix J)
inline

Returns a JMatrixType as a pointer to the input matrix (if the input matrix type is a JMatrixType), or a copy of the input matrix as a pointer to the class member @J_local.

◆ getLocalRes()

template<class TVector >
ResMatrixType* sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::getLocalRes ( linearalgebra::BaseMatrix R)
inline

◆ projectForceInConstraintSpace()

template<class TVector >
void sofa::component::linearsolver::MatrixLinearSolverInternalData< TVector >::projectForceInConstraintSpace ( linearalgebra::BaseVector r,
const linearalgebra::BaseVector f 
)
inline