11 #ifndef CUBBYFLOW_CUDA_SPH_KERNELS3_HPP 12 #define CUBBYFLOW_CUDA_SPH_KERNELS3_HPP 14 #ifdef CUBBYFLOW_USE_CUDA 28 struct CUDASPHStdKernel3
31 CUBBYFLOW_CUDA_HOST_DEVICE CUDASPHStdKernel3();
34 CUBBYFLOW_CUDA_HOST_DEVICE
explicit CUDASPHStdKernel3(
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 float4 Gradient(
const float4& point)
const;
49 CUBBYFLOW_CUDA_HOST_DEVICE float4 Gradient(
float distance,
50 const float4& direction)
const;
73 struct CUDASPHSpikyKernel3
76 CUBBYFLOW_CUDA_HOST_DEVICE CUDASPHSpikyKernel3();
79 CUBBYFLOW_CUDA_HOST_DEVICE
explicit CUDASPHSpikyKernel3(
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 float4 Gradient(
const float4& point)
const;
94 CUBBYFLOW_CUDA_HOST_DEVICE float4 Gradient(
float distance,
95 const float4& direction)
const;
Definition: pybind11Utils.hpp:20