|
| template<MatrixConcept FixedSizeMatrixType> |
| static TFEL_HOST_DEVICE bool | decomp (FixedSizeMatrixType &, TinyPermutation< N > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions) |
| | LU decompose the given matrix.
|
| template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType> |
| static TFEL_HOST_DEVICE bool | back_substitute (const FixedSizeMatrixType &, const TinyPermutation< N > &, FixedSizeVectorType &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions) |
| | solve the linear system m.x = b once the matrix has been decomposed
|
| template<unsigned short M> |
| static TFEL_HOST_DEVICE bool | back_substitute (const tmatrix< N, N, T > &, const TinyPermutation< N > &, tmatrix< N, M, T > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions) |
| | solve the linear system m.x = b once the matrix has been decomposed
|
template<unsigned short N, typename T, bool use_exceptions, bool perform_runtime_checks>
struct tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perform_runtime_checks >
solve a linear problem using LU decomposition
- Parameters
-
| N | : dimension of the system |
| T | : numerical type |
template<unsigned short N, typename T, bool use_exceptions, bool perfom_runtime_checks>
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
| TFEL_HOST_DEVICE bool tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perfom_runtime_checks >::back_substitute |
( |
const FixedSizeMatrixType & | m, |
|
|
const TinyPermutation< N > & | p, |
|
|
FixedSizeVectorType & | b, |
|
|
const T | eps = 100 * std::numeric_limits<T>::min() ) |
|
staticnoexcept |
solve the linear system m.x = b once the matrix has been decomposed
- Parameters
-
| m | : LU decomposition of a matrix |
| p | : permutation vector |
| b | : right member |
| eps | : numerical parameter to detect null pivot |