11 #ifndef CUBBYFLOW_CUDA_SPH_KERNELS2_HPP 12 #define CUBBYFLOW_CUDA_SPH_KERNELS2_HPP 14 #ifdef CUBBYFLOW_USE_CUDA 28 struct CUDASPHStdKernel2
31 CUBBYFLOW_CUDA_HOST_DEVICE CUDASPHStdKernel2();
34 CUBBYFLOW_CUDA_HOST_DEVICE
explicit CUDASPHStdKernel2(
float kernelRadius);
37 CUBBYFLOW_CUDA_HOST_DEVICE
float operator()(
float distance)
const;
40 CUBBYFLOW_CUDA_HOST_DEVICE
float FirstDerivative(
float distance)
const;
43 CUBBYFLOW_CUDA_HOST_DEVICE
float SecondDerivative(
float distance)
const;
46 CUBBYFLOW_CUDA_HOST_DEVICE float2 Gradient(
const float2& point)
const;
49 CUBBYFLOW_CUDA_HOST_DEVICE float2 Gradient(
float distance,
50 const float2& direction)
const;
73 struct CUDASPHSpikyKernel2
76 CUBBYFLOW_CUDA_HOST_DEVICE CUDASPHSpikyKernel2();
79 CUBBYFLOW_CUDA_HOST_DEVICE
explicit CUDASPHSpikyKernel2(
float kernelRadius);
82 CUBBYFLOW_CUDA_HOST_DEVICE
float operator()(
float distance)
const;
85 CUBBYFLOW_CUDA_HOST_DEVICE
float FirstDerivative(
float distance)
const;
88 CUBBYFLOW_CUDA_HOST_DEVICE
float SecondDerivative(
float distance)
const;
91 CUBBYFLOW_CUDA_HOST_DEVICE float2 Gradient(
const float2& point)
const;
94 CUBBYFLOW_CUDA_HOST_DEVICE float2 Gradient(
float distance,
95 const float2& direction)
const;
Definition: pybind11Utils.hpp:20