DiFfRG
Loading...
Searching...
No Matches
DiFfRG::IntegratorAngleTBB< d, NT, KERNEL > Class Template Reference

Integrator for the integration of a function with one angle with TBB. Calculates. More...

#include <integrator_angle_cpu.hh>

Public Types

using ctype = typename get_type::ctype<NT>
 Numerical type to be used for integration tasks e.g. the argument or possible jacobians.
 

Public Member Functions

 IntegratorAngleTBB (QuadratureProvider &quadrature_provider, const std::array< uint, 2 > grid_sizes, const ctype x_extent, const JSONValue &)
 
 IntegratorAngleTBB (QuadratureProvider &quadrature_provider, std::array< uint, 2 > grid_sizes, const ctype x_extent, const uint max_block_size=0)
 
template<typename... T>
NT get (const ctype k, const T &...t) const
 Get the integral of the kernel.
 
template<typename... T>
std::future< NT > request (const ctype k, const T &...t) const
 Request a future for the integral of the kernel.
 

Private Attributes

const std::array< uint, 2 > grid_sizes
 
const ctype x_extent
 
const std::vector< ctype > & x_quadrature_p
 
const std::vector< ctype > & x_quadrature_w
 
const std::vector< ctype > & ang_quadrature_p
 
const std::vector< ctype > & ang_quadrature_w
 

Detailed Description

template<int d, typename NT, typename KERNEL>
class DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >

Integrator for the integration of a function with one angle with TBB. Calculates.

\[ \int dp\, d\text{cos}\, \frac{1}{(2\pi)^d} f(p, \text{cos}, ...) + c \]

with \( p^2 \) bounded by \( \text{x_extent} * k^2 \).

Template Parameters
NTThe numerical type of the result.
KERNELThe kernel to integrate.

Member Typedef Documentation

◆ ctype

template<int d, typename NT , typename KERNEL >
using DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::ctype = typename get_type::ctype<NT>

Numerical type to be used for integration tasks e.g. the argument or possible jacobians.

Constructor & Destructor Documentation

◆ IntegratorAngleTBB() [1/2]

template<int d, typename NT , typename KERNEL >
DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::IntegratorAngleTBB ( QuadratureProvider & quadrature_provider,
const std::array< uint, 2 > grid_sizes,
const ctype x_extent,
const JSONValue &  )
inline

◆ IntegratorAngleTBB() [2/2]

template<int d, typename NT , typename KERNEL >
DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::IntegratorAngleTBB ( QuadratureProvider & quadrature_provider,
std::array< uint, 2 > grid_sizes,
const ctype x_extent,
const uint max_block_size = 0 )
inline

Member Function Documentation

◆ get()

template<int d, typename NT , typename KERNEL >
template<typename... T>
NT DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::get ( const ctype k,
const T &... t ) const
inline

Get the integral of the kernel.

Template Parameters
TTypes of the parameters for the kernel.
Parameters
kRG-scale.
tParameters forwarded to the kernel.
Returns
NT Integral of the kernel plus the constant part.

◆ request()

template<int d, typename NT , typename KERNEL >
template<typename... T>
std::future< NT > DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::request ( const ctype k,
const T &... t ) const
inline

Request a future for the integral of the kernel.

Template Parameters
TTypes of the parameters for the kernel.
Parameters
kRG-scale.
tParameters forwarded to the kernel.
Returns
std::future<NT> future holding the integral of the kernel plus the constant part.

Member Data Documentation

◆ ang_quadrature_p

template<int d, typename NT , typename KERNEL >
const std::vector<ctype>& DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::ang_quadrature_p
private

◆ ang_quadrature_w

template<int d, typename NT , typename KERNEL >
const std::vector<ctype>& DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::ang_quadrature_w
private

◆ grid_sizes

template<int d, typename NT , typename KERNEL >
const std::array<uint, 2> DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::grid_sizes
private

◆ x_extent

template<int d, typename NT , typename KERNEL >
const ctype DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::x_extent
private

◆ x_quadrature_p

template<int d, typename NT , typename KERNEL >
const std::vector<ctype>& DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::x_quadrature_p
private

◆ x_quadrature_w

template<int d, typename NT , typename KERNEL >
const std::vector<ctype>& DiFfRG::IntegratorAngleTBB< d, NT, KERNEL >::x_quadrature_w
private

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