![]() |
Documentation 6b54b78464
|
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. | |
|
inline |
Invert the nVar by nVar dense matrix matrix into inverse via Gauss-Jordan elimination with partial pivoting on the diagonal.
matrix is used as scratch space and destroyed, inverse must not alias it.
|
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.