OpenFPM  5.2.0
Project that contain the implementation of distributed structures
exp_kernel Struct Reference

Exponential kernel. More...

#include <vector_dist_operators_tests_util.hpp>

Public Member Functions

 exp_kernel (float var)
 Exponential kernel giving variance.
 
__device__ __host__ float value (const Point< 3, float > &p, const Point< 3, float > &q, float pA, float pB)
 Result of the exponential kernel. More...
 
__device__ __host__ Point< 3, float > value (const Point< 3, float > &p, const Point< 3, float > &q, const Point< 3, float > &pA, const Point< 3, float > &pB)
 Result of the exponential kernel. More...
 
template<typename vector_t >
__host__ __device__ float value (size_t p, size_t q, float pA, float pB, const vector_t &vd1)
 Result of the exponential kernel. More...
 
__host__ Point< 3, float > value (size_t p, size_t q, const Point< 3, float > &pA, const Point< 3, float > &pB, const vector_type &vd1)
 Result of the exponential kernel. More...
 
template<typename vector_t >
__host__ Point< 3, float > value (size_t p, size_t q, const Point< 3, float > &pA, const Point< 3, float > &pB, const vector_t &vd1)
 Result of the exponential kernel. More...
 
__device__ __host__ Point< 2, float > value (const Point< 3, float > &p, const Point< 3, float > &q)
 Result of the exponential kernel. More...
 
 exp_kernel (float sigma)
 
Point< 3, double > value (const Point< 3, float > &p, const Point< 3, float > &q, Point< 3, double > &Pp, Point< 3, double > &Pq)
 
Point< 3, double > value (size_t p, size_t q, Point< 3, double > &Pp, Point< 3, double > &Pq, const vector_dist< 3, double, aggregate< double, double, Point< 3, double >, Point< 3, double >> > &v)
 

Data Fields

float var
 variance of the exponential kernel
 
float sigma
 

Detailed Description

Exponential kernel.

Definition at line 1608 of file vector_dist_operators_tests_util.hpp.

Member Function Documentation

◆ value() [1/6]

__device__ __host__ Point<2,float> exp_kernel::value ( const Point< 3, float > &  p,
const Point< 3, float > &  q 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
Returns
the result

Definition at line 1775 of file vector_dist_operators_tests_util.hpp.

◆ value() [2/6]

__device__ __host__ Point<3,float> exp_kernel::value ( const Point< 3, float > &  p,
const Point< 3, float > &  q,
const Point< 3, float > &  pA,
const Point< 3, float > &  pB 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
pAproperty value at p
pBproperty value at q
Returns
the result

Definition at line 1645 of file vector_dist_operators_tests_util.hpp.

◆ value() [3/6]

__device__ __host__ float exp_kernel::value ( const Point< 3, float > &  p,
const Point< 3, float > &  q,
float  pA,
float  pB 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
pAproperty value at p
pBproperty value at q
Returns
the result

Definition at line 1628 of file vector_dist_operators_tests_util.hpp.

◆ value() [4/6]

template<typename vector_t >
__host__ Point<3,float> exp_kernel::value ( size_t  p,
size_t  q,
const Point< 3, float > &  pA,
const Point< 3, float > &  pB,
const vector_t &  vd1 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
pAproperty value at p
pBproperty value at q
vd1original vector
Returns
the result

Definition at line 1732 of file vector_dist_operators_tests_util.hpp.

◆ value() [5/6]

__host__ Point<3,float> exp_kernel::value ( size_t  p,
size_t  q,
const Point< 3, float > &  pA,
const Point< 3, float > &  pB,
const vector_type vd1 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
pAproperty value at p
pBproperty value at q
vd1original vector
Returns
the result

Definition at line 1710 of file vector_dist_operators_tests_util.hpp.

◆ value() [6/6]

template<typename vector_t >
__host__ __device__ float exp_kernel::value ( size_t  p,
size_t  q,
float  pA,
float  pB,
const vector_t &  vd1 
)
inline

Result of the exponential kernel.

Parameters
pposition of the particle p
qposition of the particle q
pAproperty value at p
pBproperty value at q
vd1original vector
Returns
the result

Definition at line 1664 of file vector_dist_operators_tests_util.hpp.


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