|
limes 3.1.0
Composable Calculus Expressions for C++20
|
#include <result.hpp>
Collaboration diagram for limes::algorithms::integration_result< T >:Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | integration_result () noexcept=default |
| constexpr | integration_result (T val, T err, std::size_t iters) noexcept |
| constexpr | integration_result (T val, T err, std::size_t iters, std::size_t evals) noexcept |
| constexpr T | value () const noexcept |
| constexpr T | error () const noexcept |
| constexpr std::size_t | iterations () const noexcept |
| constexpr std::size_t | evaluations () const noexcept |
| constexpr bool | converged () const noexcept |
| constexpr | operator T () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr T | relative_error () const noexcept |
| constexpr integration_result & | operator+= (const integration_result &other) noexcept |
| constexpr integration_result | operator+ (const integration_result &other) const noexcept |
| constexpr integration_result & | operator*= (T scale) noexcept |
| constexpr integration_result | operator* (T scale) const noexcept |
Public Attributes | |
| T | value_ {} |
| T | error_ {} |
| std::size_t | iterations_ {} |
| std::size_t | evaluations_ {} |
| bool | converged_ {true} |
| std::optional< T > | variance_ {} |
| std::optional< std::vector< T > > | intermediate_values_ {} |
Friends | |
| constexpr integration_result | operator* (T scale, const integration_result &r) noexcept |
Definition at line 12 of file result.hpp.
| using limes::algorithms::integration_result< T >::value_type = T |
Definition at line 13 of file result.hpp.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 27 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 30 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 38 of file result.hpp.
References limes::algorithms::integration_result< T >::converged_.
|
inlineconstexprnoexcept |
Definition at line 35 of file result.hpp.
References limes::algorithms::integration_result< T >::error_.
|
inlineconstexprnoexcept |
Definition at line 37 of file result.hpp.
References limes::algorithms::integration_result< T >::evaluations_.
|
inlineconstexprnoexcept |
Definition at line 36 of file result.hpp.
References limes::algorithms::integration_result< T >::iterations_.
|
inlineexplicitconstexprnoexcept |
Definition at line 42 of file result.hpp.
References limes::algorithms::integration_result< T >::converged_.
|
inlineconstexprnoexcept |
Definition at line 41 of file result.hpp.
References limes::algorithms::integration_result< T >::value_.
|
inlineconstexprnoexcept |
Definition at line 73 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 67 of file result.hpp.
References limes::algorithms::integration_result< T >::error_, and limes::algorithms::integration_result< T >::value_.
|
inlineconstexprnoexcept |
Definition at line 60 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 51 of file result.hpp.
References limes::algorithms::integration_result< T >::converged_, limes::algorithms::integration_result< T >::error_, limes::algorithms::integration_result< T >::evaluations_, limes::algorithms::integration_result< T >::iterations_, and limes::algorithms::integration_result< T >::value_.
|
inlineconstexprnoexcept |
Definition at line 45 of file result.hpp.
References limes::algorithms::integration_result< T >::error_, and limes::algorithms::integration_result< T >::value_.
|
inlineconstexprnoexcept |
Definition at line 34 of file result.hpp.
References limes::algorithms::integration_result< T >::value_.
|
friend |
Definition at line 79 of file result.hpp.
| bool limes::algorithms::integration_result< T >::converged_ {true} |
Definition at line 19 of file result.hpp.
Referenced by limes::algorithms::integration_result< T >::converged(), limes::algorithms::integration_result< T >::operator bool(), and limes::algorithms::integration_result< T >::operator+=().
| T limes::algorithms::integration_result< T >::error_ {} |
| std::size_t limes::algorithms::integration_result< T >::evaluations_ {} |
Definition at line 18 of file result.hpp.
Referenced by limes::algorithms::integration_result< T >::evaluations(), and limes::algorithms::integration_result< T >::operator+=().
| std::optional<std::vector<T> > limes::algorithms::integration_result< T >::intermediate_values_ {} |
Definition at line 23 of file result.hpp.
| std::size_t limes::algorithms::integration_result< T >::iterations_ {} |
Definition at line 17 of file result.hpp.
Referenced by limes::algorithms::integration_result< T >::iterations(), and limes::algorithms::integration_result< T >::operator+=().
| T limes::algorithms::integration_result< T >::value_ {} |
Definition at line 15 of file result.hpp.
Referenced by limes::algorithms::integration_result< T >::operator T(), limes::algorithms::integration_result< T >::operator*=(), limes::algorithms::integration_result< T >::operator+=(), limes::algorithms::integration_result< T >::relative_error(), and limes::algorithms::integration_result< T >::value().
| std::optional<T> limes::algorithms::integration_result< T >::variance_ {} |
Definition at line 22 of file result.hpp.
Referenced by limes::methods::monte_carlo< T >::operator()().