Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
uni20::tanh_sinh_options< R, N > Struct Template Reference

Explicit precision, component tolerances and work limits for tanh-sinh quadrature. More...

#include <finite_quadrature.hpp>

Collaboration diagram for uni20::tanh_sinh_options< R, N >:
[legend]

Public Member Functions

 tanh_sinh_options ()
 
 tanh_sinh_options (Precision p)
 

Public Attributes

std::array< R, N > absolute_tolerance
 
unsigned endpoint_power = 3
 
std::size_t max_evaluations = 200000
 
std::size_t max_levels = 12
 
R relative_tolerance
 

Detailed Description

template<Real R, std::size_t N = 1>
struct uni20::tanh_sinh_options< R, N >

Explicit precision, component tolerances and work limits for tanh-sinh quadrature.

Convergence uses max(absolute_tolerance[j], relative_tolerance*abs(value[j])). endpoint_power controls the transformed cutoff -endpoint_power*log(epsilon)+4; increasing it resolves stronger endpoint singularities at additional cost.

Constructor & Destructor Documentation

◆ tanh_sinh_options() [1/2]

template<Real R, std::size_t N = 1>
uni20::tanh_sinh_options< R, N >::tanh_sinh_options ( Precision  p)
inlineexplicit

◆ tanh_sinh_options() [2/2]

template<Real R, std::size_t N = 1>
uni20::tanh_sinh_options< R, N >::tanh_sinh_options ( )
inline

Member Data Documentation

◆ absolute_tolerance

template<Real R, std::size_t N = 1>
std::array<R, N> uni20::tanh_sinh_options< R, N >::absolute_tolerance

◆ endpoint_power

template<Real R, std::size_t N = 1>
unsigned uni20::tanh_sinh_options< R, N >::endpoint_power = 3

◆ max_evaluations

template<Real R, std::size_t N = 1>
std::size_t uni20::tanh_sinh_options< R, N >::max_evaluations = 200000

◆ max_levels

template<Real R, std::size_t N = 1>
std::size_t uni20::tanh_sinh_options< R, N >::max_levels = 12

◆ relative_tolerance

template<Real R, std::size_t N = 1>
R uni20::tanh_sinh_options< R, N >::relative_tolerance

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