Stores the result of factorization type algorithms.
More...
Stores the result of factorization type algorithms.
A factor_result contains an optional pivot index signaling either success or failure of the corresponding factorization algorithm. On success, a factor_result does not have a pivot index. On failure, a factor_result has a pivot index which specifies the first bad pivot encountered during factorization, that is the pivot that caused factorization to fail.
- Note
- A
factor_result cannot represent a pivot index with value std::numeric_limits<std::size_t>::max().
◆ factor_result() [1/2]
| arene::base::linalg::factor_result::factor_result |
( |
| ) |
|
|
constexprdefault |
◆ factor_result() [2/2]
| arene::base::linalg::factor_result::factor_result |
( |
std::size_t | idx | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ has_pivot_index()
| auto arene::base::linalg::factor_result::has_pivot_index |
( |
| ) |
const -> bool |
|
inlineconstexprnoexcept |
Query whether the factorization failed.
- Returns
true if the factorization failed, that is if there is a pivot index
◆ operator bool()
| arene::base::linalg::factor_result::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
Query whether the factorization succeeded.
- Returns
true if the factorization succeeded, that is if there is no pivot index
◆ pivot_index()
| auto arene::base::linalg::factor_result::pivot_index |
( |
| ) |
const -> std::size_t |
|
inlineconstexprnoexcept |
Obtain the pivot index.
- Precondition
has_pivot_index() is true, otherwise ARENE_PRECONDITION violation
- Returns
- Index of the first bad pivot encountered during factorization
The documentation for this class was generated from the following file: