5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_FACTOR_RESULT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_FACTOR_RESULT_HPP_
12#include "arene/base/stdlib_choice/cstddef.hpp"
13#include "arene/base/stdlib_choice/numeric_limits.hpp"
48 constexpr explicit operator bool() const noexcept {
return index_ == no_pivot_index; }
constexpr auto has_pivot_index() const noexcept -> bool
Query whether the factorization failed.
Definition factor_result.hpp:52
constexpr auto pivot_index() const noexcept -> std::size_t
Obtain the pivot index.
Definition factor_result.hpp:57
constexpr factor_result()=default
Construct a result denoting success.
constexpr factor_result(std::size_t idx) noexcept
Construct a result denoting failure.
Definition factor_result.hpp:41
static constexpr auto max() noexcept -> T
The maximum finite value.
Definition numeric_limits.hpp:230
#define ARENE_PRECONDITION(condition)
Check that a precondition holds, and terminate the application if it does not.
Definition contract.hpp:150
Definition accumulate.hpp:37
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29