Go to the documentation of this file.
10 #ifndef VTKM_KERNELBASE_HPP
11 #define VTKM_KERNELBASE_HPP
20 namespace splatkernels
27 #define M_PI vtkm::Pi()
31 template <vtkm::IdComponent N>
52 template <
typename Kernel>
76 double w(
double distance) {
return static_cast<Kernel*
>(
this)->
w(distance); }
83 double w2(
double distance2) {
return static_cast<Kernel*
>(
this)->
w2(distance2); }
91 double w(
double h,
double distance) {
return static_cast<Kernel*
>(
this)->
w(h, distance); }
97 double w2(
double h,
double distance2) {
return static_cast<Kernel*
>(
this)->
w2(h, distance2); }
105 return static_cast<Kernel*
>(
this)->
gradW(distance, pos);
114 return static_cast<Kernel*
>(
this)->
gradW(h, distance, pos);
VTKM_EXEC_CONT double w2(double h, double distance2)
Definition: KernelBase.h:97
VTKM_EXEC_CONT vtkm::Float64 PowerExpansion< 0 >(vtkm::Float64)
Definition: KernelBase.h:44
VTKM_EXEC_CONT double getDilationFactor() const
Definition: KernelBase.h:119
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT vector_type gradW(double h, double distance, const vector_type &pos)
Definition: KernelBase.h:112
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC_CONT double maxDistanceSquared()
Definition: KernelBase.h:129
VTKM_EXEC_CONT vtkm::Float64 PowerExpansion< 1 >(vtkm::Float64 x)
Definition: KernelBase.h:38
VTKM_EXEC_CONT double w2(double distance2)
Definition: KernelBase.h:83
vtkm::Vec< vtkm::Float64, 3 > Vec3f_64
Vec3f_64 corresponds to a 3-dimensional vector of 64-bit floating point values.
Definition: Types.h:1026
VTKM_EXEC_CONT KernelBase(double smoothingLength)
Definition: KernelBase.h:61
Definition: KernelBase.h:53
VTKM_EXEC_CONT vtkm::Float64 PowerExpansion(vtkm::Float64 x)
Definition: KernelBase.h:32
VTKM_EXEC_CONT double w(double h, double distance)
Definition: KernelBase.h:91
VTKM_EXEC_CONT vector_type gradW(double distance, const vector_type &pos)
Definition: KernelBase.h:103
VTKM_EXEC_CONT double w(double distance)
Definition: KernelBase.h:76
VTKM_EXEC_CONT double maxDistance()
Definition: KernelBase.h:124
double Float64
Definition: Types.h:155
const double smoothingLength_
Definition: KernelBase.h:132