DiFfRG
Loading...
Searching...
No Matches
DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T > Struct Template Reference

Custom functor for the thrust::transform_reduce function. More...

#include <integrator_gpu.hh>

Public Member Functions

 functor (const ctype *x_quadrature_p, const ctype *x_quadrature_w, const ctype x_extent, const ctype k, T... t)
 
__device__ NT operator() (const uint idx) const
 

Private Attributes

const ctypex_quadrature_p
 
const ctypex_quadrature_w
 
const ctype x_extent
 
const ctype k
 
const std::tuple< T... > t
 

Detailed Description

template<int d, typename NT, typename KERNEL>
template<typename... T>
struct DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >

Custom functor for the thrust::transform_reduce function.

Template Parameters
TThe types of the additional arguments to the kernel.

Constructor & Destructor Documentation

◆ functor()

template<int d, typename NT , typename KERNEL >
template<typename... T>
DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::functor ( const ctype * x_quadrature_p,
const ctype * x_quadrature_w,
const ctype x_extent,
const ctype k,
T... t )
inline

Member Function Documentation

◆ operator()()

template<int d, typename NT , typename KERNEL >
template<typename... T>
__device__ NT DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::operator() ( const uint idx) const
inline

Member Data Documentation

◆ k

template<int d, typename NT , typename KERNEL >
template<typename... T>
const ctype DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::k
private

◆ t

template<int d, typename NT , typename KERNEL >
template<typename... T>
const std::tuple<T...> DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::t
private

◆ x_extent

template<int d, typename NT , typename KERNEL >
template<typename... T>
const ctype DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::x_extent
private

◆ x_quadrature_p

template<int d, typename NT , typename KERNEL >
template<typename... T>
const ctype* DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::x_quadrature_p
private

◆ x_quadrature_w

template<int d, typename NT , typename KERNEL >
template<typename... T>
const ctype* DiFfRG::IntegratorGPU< d, NT, KERNEL >::functor< T >::x_quadrature_w
private

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