ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Utils::Interpolation Namespace Reference

Functions

template<int order, typename Kernel >
void bspline_3d (Vector3d const &pos, Kernel const &kernel, Vector3d const &grid_spacing, Vector3d const &offset)
 cardinal B-spline interpolation with internal iteration.
 
template<int order, typename T , typename Kernel >
bspline_3d_accumulate (Vector3d const &pos, Kernel const &kernel, Vector3d const &grid_spacing, Vector3d const &offset, T const &init)
 cardinal B-spline weighted sum.
 
template<int order, typename Kernel >
void bspline_3d_gradient (Vector3d const &pos, Kernel const &kernel, Vector3d const &grid_spacing, Vector3d const &offset)
 cardinal B-spline gradient interpolation with internal iteration.
 
template<int order, typename T , typename Kernel >
bspline_3d_gradient_accumulate (Vector3d const &pos, Kernel const &kernel, Vector3d const &grid_spacing, Vector3d const &offset, T const &init)
 cardinal B-spline weighted sum.
 

Function Documentation

◆ bspline_3d()

template<int order, typename Kernel >
void Utils::Interpolation::bspline_3d ( Vector3d const &  pos,
Kernel const &  kernel,
Vector3d const &  grid_spacing,
Vector3d const &  offset 
)

cardinal B-spline interpolation with internal iteration.

Template Parameters
orderThe number of interpolation points in each direction.
KernelCallable that can be called at every point with the index of the point and its weight as arguments.
Parameters
posThe point at which the interpolation should be run.
kernelFunction to run for every point.
grid_spacingThe distance between the grid points.
offsetShift of the grid relative to the origin.

Definition at line 45 of file bspline_3d.hpp.

References block(), Utils::bspline(), and pos.

◆ bspline_3d_accumulate()

template<int order, typename T , typename Kernel >
T Utils::Interpolation::bspline_3d_accumulate ( Vector3d const &  pos,
Kernel const &  kernel,
Vector3d const &  grid_spacing,
Vector3d const &  offset,
T const &  init 
)

cardinal B-spline weighted sum.

Definition at line 79 of file bspline_3d.hpp.

References pos.

◆ bspline_3d_gradient()

template<int order, typename Kernel >
void Utils::Interpolation::bspline_3d_gradient ( Vector3d const &  pos,
Kernel const &  kernel,
Vector3d const &  grid_spacing,
Vector3d const &  offset 
)

cardinal B-spline gradient interpolation with internal iteration.

Template Parameters
orderThe number of interpolation points in each direction.
KernelCallable that can be called at every point with the index of the point and its weights as arguments.
Parameters
posThe point at which the interpolation should be run.
kernelFunction to run for every point.
grid_spacingThe distance between the grid points.
offsetShift of the grid relative to the origin.

Definition at line 46 of file bspline_3d_gradient.hpp.

References block(), Utils::bspline(), and pos.

◆ bspline_3d_gradient_accumulate()

template<int order, typename T , typename Kernel >
T Utils::Interpolation::bspline_3d_gradient_accumulate ( Vector3d const &  pos,
Kernel const &  kernel,
Vector3d const &  grid_spacing,
Vector3d const &  offset,
T const &  init 
)

cardinal B-spline weighted sum.

Definition at line 85 of file bspline_3d_gradient.hpp.

References pos, and Utils::tensor_product().