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

#include <integrators.hpp>

Public Types

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

Public Member Functions

constexpr quadrature_integrator () noexcept=default
 
constexpr quadrature_integrator (Rule rule, Acc acc={}) noexcept
 
template<concepts::UnivariateFunction< T > F>
constexpr result_type operator() (F &&f, T a, T b) const
 
template<concepts::UnivariateFunction< T > F>
constexpr result_type operator() (F &&f, T a, T b, T tol) const
 

Detailed Description

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
class limes::algorithms::quadrature_integrator< T, Rule, Acc >

Definition at line 19 of file integrators.hpp.

Member Typedef Documentation

◆ accumulator_type

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
using limes::algorithms::quadrature_integrator< T, Rule, Acc >::accumulator_type = Acc

Definition at line 24 of file integrators.hpp.

◆ result_type

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
using limes::algorithms::quadrature_integrator< T, Rule, Acc >::result_type = integration_result<T>

Definition at line 22 of file integrators.hpp.

◆ rule_type

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
using limes::algorithms::quadrature_integrator< T, Rule, Acc >::rule_type = Rule

Definition at line 23 of file integrators.hpp.

◆ value_type

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
using limes::algorithms::quadrature_integrator< T, Rule, Acc >::value_type = T

Definition at line 21 of file integrators.hpp.

Constructor & Destructor Documentation

◆ quadrature_integrator() [1/2]

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
constexpr limes::algorithms::quadrature_integrator< T, Rule, Acc >::quadrature_integrator ( )
constexprdefaultnoexcept

◆ quadrature_integrator() [2/2]

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
constexpr limes::algorithms::quadrature_integrator< T, Rule, Acc >::quadrature_integrator ( Rule  rule,
Acc  acc = {} 
)
inlineexplicitconstexprnoexcept

Definition at line 28 of file integrators.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<concepts::Field T, concepts::QuadratureRule< T > Rule, concepts::Accumulator< T > Acc = accumulators::simple_accumulator<T>>
template<concepts::UnivariateFunction< T > F>
constexpr result_type limes::algorithms::quadrature_integrator< T, Rule, Acc >::operator() ( F &&  f,
a,
b 
) const
inlineconstexpr

Definition at line 32 of file integrators.hpp.

◆ operator()() [2/2]

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

Definition at line 37 of file integrators.hpp.


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