Documentation 6b54b78464
Loading...
Searching...
No Matches
SU2_LinAlg Namespace Reference

Functions

template<class ScalarType >
void RegularizePivot (ScalarType &pivot)
 Regularize a pivot that is too small to prevent divide-by-zero, on host and device this needs to clamp to the same value so that the two produce the same factors.
 
template<class ScalarType >
void MatrixInverse (unsigned long nVar, ScalarType *matrix, ScalarType *inverse)
 Invert the nVar by nVar dense matrix matrix into inverse via Gauss-Jordan elimination with partial pivoting on the diagonal.
 

Function Documentation

◆ MatrixInverse()

template<class ScalarType >
void SU2_LinAlg::MatrixInverse ( unsigned long  nVar,
ScalarType *  matrix,
ScalarType *  inverse 
)
inline

Invert the nVar by nVar dense matrix matrix into inverse via Gauss-Jordan elimination with partial pivoting on the diagonal.

Note
matrix is used as scratch space and destroyed, inverse must not alias it.

◆ RegularizePivot()

template<class ScalarType >
void SU2_LinAlg::RegularizePivot ( ScalarType &  pivot)
inline

Regularize a pivot that is too small to prevent divide-by-zero, on host and device this needs to clamp to the same value so that the two produce the same factors.