limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::algorithms::romberg_integrator< T, Acc > Class Template Reference

#include <integrators.hpp>

Public Types

using value_type = T
 
using result_type = integration_result< T >
 
using accumulator_type = Acc
 

Public Member Functions

constexpr romberg_integrator () noexcept=default
 
template<concepts::UnivariateFunction< T > F>
constexpr result_type operator() (F &&f, T a, T b, T tol=default_tolerance()) const
 

Static Public Attributes

static constexpr std::size_t max_iterations = 20
 

Detailed Description

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
class limes::algorithms::romberg_integrator< T, Acc >

Definition at line 218 of file integrators.hpp.

Member Typedef Documentation

◆ accumulator_type

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
using limes::algorithms::romberg_integrator< T, Acc >::accumulator_type = Acc

Definition at line 222 of file integrators.hpp.

◆ result_type

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
using limes::algorithms::romberg_integrator< T, Acc >::result_type = integration_result<T>

Definition at line 221 of file integrators.hpp.

◆ value_type

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
using limes::algorithms::romberg_integrator< T, Acc >::value_type = T

Definition at line 220 of file integrators.hpp.

Constructor & Destructor Documentation

◆ romberg_integrator()

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
constexpr limes::algorithms::romberg_integrator< T, Acc >::romberg_integrator ( )
constexprdefaultnoexcept

Member Function Documentation

◆ operator()()

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
template<concepts::UnivariateFunction< T > F>
constexpr result_type limes::algorithms::romberg_integrator< T, Acc >::operator() ( F &&  f,
a,
b,
tol = default_tolerance() 
) const
inlineconstexpr

Member Data Documentation

◆ max_iterations

template<concepts::Field T, concepts::Accumulator< T > Acc = accumulators::kahan_accumulator<T>>
constexpr std::size_t limes::algorithms::romberg_integrator< T, Acc >::max_iterations = 20
staticconstexpr

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