|
|
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType> |
| TFEL_HOST_DEVICE bool | exe (const FixedSizeMatrixType &m, FixedSizeVectorType &b, const T eps) noexcept(!use_exceptions) |
|
template<unsigned short M> |
| TFEL_HOST_DEVICE bool | exe (const tmatrix< 1u, 1u, T > &m, tmatrix< 1u, M, T > &b, const T eps) noexcept(!use_exceptions) |
|
template<unsigned short M> |
| TFEL_HOST_DEVICE bool | exe (const tmatrix< 2u, 2u, T > &m, tmatrix< 2u, M, T > &b, const T eps) noexcept(!use_exceptions) |
|
template<unsigned short M> |
| TFEL_HOST_DEVICE bool | exe (const tmatrix< 3u, 3u, T > &m, tmatrix< 3u, M, T > &b, const T eps) noexcept(!use_exceptions) |
|
| template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType> |
| static TFEL_HOST_DEVICE bool | exe (FixedSizeMatrixType &, FixedSizeVectorType &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions) |
| template<unsigned short M> |
| static TFEL_HOST_DEVICE bool | exe (tmatrix< N, N, T > &m, tmatrix< N, M, T > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions) |
| 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.
|
| 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 N, typename T, bool use_exceptions = true, bool perform_runtime_checks = false>
struct tfel::math::TinyMatrixSolve< 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::TinyMatrixSolve< N, T, use_exceptions, perfom_runtime_checks >::exe |
( |
FixedSizeMatrixType & | m, |
|
|
FixedSizeVectorType & | b, |
|
|
const T | eps = 100 * std::numeric_limits<T>::min() ) |
|
staticnoexcept |
solve the linear system m.x = b
- Parameters
-
| m | : matrix to be inverted |
| b | : right member |
| eps | : numerical paramater to detect null pivot |
- Note
- the matrix m is overwritten during computations
-
the right member is overwritten by the solution