OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::gpu::cuda::sum_of_thrust_tuple Struct Reference

#include <integral.hh>

+ Collaboration diagram for olb::gpu::cuda::sum_of_thrust_tuple:

Public Member Functions

template<typename TUPLE , std::size_t... INDICES>
auto operator() (const TUPLE &t1, const TUPLE &t2, std::index_sequence< INDICES... >) __host__ __device__
 
template<typename TUPLE >
auto operator() (const TUPLE &t1, const TUPLE &t2) __host__ __device__
 

Detailed Description

Definition at line 100 of file integral.hh.

Member Function Documentation

◆ operator()() [1/2]

template<typename TUPLE >
auto olb::gpu::cuda::sum_of_thrust_tuple::operator() ( const TUPLE & t1,
const TUPLE & t2 )
inline

Definition at line 108 of file integral.hh.

108 {
109 return operator()(t1, t2, std::make_index_sequence<thrust::tuple_size<TUPLE>::value>{});
110 }
auto operator()(const TUPLE &t1, const TUPLE &t2, std::index_sequence< INDICES... >) __host__ __device__
Definition integral.hh:102

References operator()().

+ Here is the call graph for this function:

◆ operator()() [2/2]

template<typename TUPLE , std::size_t... INDICES>
auto olb::gpu::cuda::sum_of_thrust_tuple::operator() ( const TUPLE & t1,
const TUPLE & t2,
std::index_sequence< INDICES... >  )
inline

Definition at line 102 of file integral.hh.

103 {
104 return thrust::make_tuple((thrust::get<INDICES>(t1) + thrust::get<INDICES>(t2))...);
105 }
+ Here is the caller graph for this function:

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