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

Adaptive integration with recursive interval subdivision until convergence. More...

#include <methods.hpp>

Public Types

using value_type = T
 

Public Member Functions

constexpr adaptive (T tol=T(1e-10), std::size_t max_sub=1000) noexcept
 
algorithms::integration_result< T > operator() (std::function< T(T)> const &f, T a, T b) const
 
constexpr adaptive with_tolerance (T tol) const noexcept
 
constexpr adaptive with_max_subdivisions (std::size_t max_sub) const noexcept
 

Public Attributes

tolerance
 
std::size_t max_subdivisions
 

Detailed Description

template<typename T = double>
struct limes::methods::adaptive< T >

Adaptive integration with recursive interval subdivision until convergence.

Definition at line 68 of file methods.hpp.

Member Typedef Documentation

◆ value_type

template<typename T = double>
using limes::methods::adaptive< T >::value_type = T

Definition at line 69 of file methods.hpp.

Constructor & Destructor Documentation

◆ adaptive()

template<typename T = double>
constexpr limes::methods::adaptive< T >::adaptive ( tol = T(1e-10),
std::size_t  max_sub = 1000 
)
inlineconstexprnoexcept

Definition at line 74 of file methods.hpp.

Member Function Documentation

◆ operator()()

template<typename T = double>
algorithms::integration_result< T > limes::methods::adaptive< T >::operator() ( std::function< T(T)> const &  f,
a,
b 
) const
inline

Definition at line 78 of file methods.hpp.

References limes::methods::adaptive< T >::tolerance.

◆ with_max_subdivisions()

template<typename T = double>
constexpr adaptive limes::methods::adaptive< T >::with_max_subdivisions ( std::size_t  max_sub) const
inlineconstexprnoexcept

Definition at line 87 of file methods.hpp.

References limes::methods::adaptive< T >::tolerance.

◆ with_tolerance()

template<typename T = double>
constexpr adaptive limes::methods::adaptive< T >::with_tolerance ( tol) const
inlineconstexprnoexcept

Definition at line 83 of file methods.hpp.

References limes::methods::adaptive< T >::max_subdivisions.

Member Data Documentation

◆ max_subdivisions

template<typename T = double>
std::size_t limes::methods::adaptive< T >::max_subdivisions

Definition at line 72 of file methods.hpp.

Referenced by limes::methods::adaptive< T >::with_tolerance().

◆ tolerance

template<typename T = double>
T limes::methods::adaptive< T >::tolerance

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