OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
apply_kernel_is_number_or_expression< impl, T, vector, exp, NN_type, Kernel, rtype, is_exp > Struct Template Reference

Apply the kernel to particle differently that is a number or is an expression. More...

Detailed Description

template<unsigned int impl, typename T, typename vector, typename exp, typename NN_type, typename Kernel, typename rtype, bool is_exp = is_expression<T>::value>
struct apply_kernel_is_number_or_expression< impl, T, vector, exp, NN_type, Kernel, rtype, is_exp >

Apply the kernel to particle differently that is a number or is an expression.

Definition at line 108 of file vector_dist_operators_apply_kernel.hpp.

#include <vector_dist_operators_apply_kernel.hpp>

Static Public Member Functions

__host__ static __device__ std::remove_reference< rtype >::type apply (const vector &vd, NN_type &cl, const exp &v_exp, const vect_dist_key_dx &key, Kernel &lker)
 Apply the kernel expression to a particle.
 

Member Function Documentation

◆ apply()

template<unsigned int impl, typename T , typename vector , typename exp , typename NN_type , typename Kernel , typename rtype , bool is_exp = is_expression<T>::value>
__host__ static __device__ std::remove_reference< rtype >::type apply_kernel_is_number_or_expression< impl, T, vector, exp, NN_type, Kernel, rtype, is_exp >::apply ( const vector &  vd,
NN_type &  cl,
const exp &  v_exp,
const vect_dist_key_dx key,
Kernel &  lker 
)
inlinestatic

Apply the kernel expression to a particle.

Parameters
vdvector with the particles positions
clCell-list
v_expexpression to execute for each particle
keyto which particle to apply the expression
lkerkernel function
Returns
the result of apply the kernel on the particle key

Definition at line 121 of file vector_dist_operators_apply_kernel.hpp.


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