limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::algorithms::integration_result< T > Struct Template Reference

#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_resultoperator+= (const integration_result &other) noexcept
 
constexpr integration_result operator+ (const integration_result &other) const noexcept
 
constexpr integration_resultoperator*= (T scale) noexcept
 
constexpr integration_result operator* (T scale) const noexcept
 

Public Attributes

value_ {}
 
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
 

Detailed Description

template<concepts::Field T>
struct limes::algorithms::integration_result< T >

Definition at line 12 of file result.hpp.

Member Typedef Documentation

◆ value_type

template<concepts::Field T>
using limes::algorithms::integration_result< T >::value_type = T

Definition at line 13 of file result.hpp.

Constructor & Destructor Documentation

◆ integration_result() [1/3]

template<concepts::Field T>
constexpr limes::algorithms::integration_result< T >::integration_result ( )
constexprdefaultnoexcept

◆ integration_result() [2/3]

template<concepts::Field T>
constexpr limes::algorithms::integration_result< T >::integration_result ( val,
err,
std::size_t  iters 
)
inlineconstexprnoexcept

Definition at line 27 of file result.hpp.

◆ integration_result() [3/3]

template<concepts::Field T>
constexpr limes::algorithms::integration_result< T >::integration_result ( val,
err,
std::size_t  iters,
std::size_t  evals 
)
inlineconstexprnoexcept

Definition at line 30 of file result.hpp.

Member Function Documentation

◆ converged()

template<concepts::Field T>
constexpr bool limes::algorithms::integration_result< T >::converged ( ) const
inlineconstexprnoexcept

Definition at line 38 of file result.hpp.

References limes::algorithms::integration_result< T >::converged_.

◆ error()

template<concepts::Field T>
constexpr T limes::algorithms::integration_result< T >::error ( ) const
inlineconstexprnoexcept

Definition at line 35 of file result.hpp.

References limes::algorithms::integration_result< T >::error_.

◆ evaluations()

template<concepts::Field T>
constexpr std::size_t limes::algorithms::integration_result< T >::evaluations ( ) const
inlineconstexprnoexcept

◆ iterations()

template<concepts::Field T>
constexpr std::size_t limes::algorithms::integration_result< T >::iterations ( ) const
inlineconstexprnoexcept

◆ operator bool()

template<concepts::Field T>
constexpr limes::algorithms::integration_result< T >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 42 of file result.hpp.

References limes::algorithms::integration_result< T >::converged_.

◆ operator T()

template<concepts::Field T>
constexpr limes::algorithms::integration_result< T >::operator T ( ) const
inlineconstexprnoexcept

Definition at line 41 of file result.hpp.

References limes::algorithms::integration_result< T >::value_.

◆ operator*()

template<concepts::Field T>
constexpr integration_result limes::algorithms::integration_result< T >::operator* ( scale) const
inlineconstexprnoexcept

Definition at line 73 of file result.hpp.

◆ operator*=()

template<concepts::Field T>
constexpr integration_result & limes::algorithms::integration_result< T >::operator*= ( scale)
inlineconstexprnoexcept

◆ operator+()

template<concepts::Field T>
constexpr integration_result limes::algorithms::integration_result< T >::operator+ ( const integration_result< T > &  other) const
inlineconstexprnoexcept

Definition at line 60 of file result.hpp.

◆ operator+=()

◆ relative_error()

template<concepts::Field T>
constexpr T limes::algorithms::integration_result< T >::relative_error ( ) const
inlineconstexprnoexcept

◆ value()

template<concepts::Field T>
constexpr T limes::algorithms::integration_result< T >::value ( ) const
inlineconstexprnoexcept

Definition at line 34 of file result.hpp.

References limes::algorithms::integration_result< T >::value_.

Friends And Related Symbol Documentation

◆ operator*

template<concepts::Field T>
constexpr integration_result operator* ( scale,
const integration_result< T > &  r 
)
friend

Definition at line 79 of file result.hpp.

Member Data Documentation

◆ converged_

◆ error_

◆ evaluations_

template<concepts::Field T>
std::size_t limes::algorithms::integration_result< T >::evaluations_ {}

◆ intermediate_values_

template<concepts::Field T>
std::optional<std::vector<T> > limes::algorithms::integration_result< T >::intermediate_values_ {}

Definition at line 23 of file result.hpp.

◆ iterations_

template<concepts::Field T>
std::size_t limes::algorithms::integration_result< T >::iterations_ {}

◆ value_

◆ variance_

template<concepts::Field T>
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()().


The documentation for this struct was generated from the following file: