OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
exp_kernel Struct Reference

Exponential kernel. More...

Detailed Description

Exponential kernel.

Definition at line 1608 of file vector_dist_operators_tests_util.hpp.

#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.
 
__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.
 
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.
 
__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.
 
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.
 
__device__ __host__ Point< 2, float > value (const Point< 3, float > &p, const Point< 3, float > &q)
 Result of the exponential kernel.
 
 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
 

Constructor & Destructor Documentation

◆ exp_kernel() [1/2]

exp_kernel::exp_kernel ( float  var)
inline

Exponential kernel giving variance.

Definition at line 1614 of file vector_dist_operators_tests_util.hpp.

◆ exp_kernel() [2/2]

exp_kernel::exp_kernel ( float  sigma)
inline

Definition at line 66 of file main.cpp.

Member Function Documentation

◆ value() [1/8]

__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/8]

__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/8]

__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/8]

Point< 3, double > exp_kernel::value ( const Point< 3, float > &  p,
const Point< 3, float > &  q,
Point< 3, double > &  Pp,
Point< 3, double > &  Pq 
)
inline

Definition at line 73 of file main.cpp.

◆ value() [5/8]

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() [6/8]

__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() [7/8]

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.

◆ value() [8/8]

Point< 3, double > exp_kernel::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 
)
inline

Definition at line 85 of file main.cpp.

Field Documentation

◆ sigma

float exp_kernel::sigma

Definition at line 63 of file main.cpp.

◆ var

float exp_kernel::var

variance of the exponential kernel

Definition at line 1611 of file vector_dist_operators_tests_util.hpp.


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