WarpX
Loading...
Searching...
No Matches
LinearInterpolation.H File Reference

Go to the source code of this file.

Namespaces

namespace  ablastr
 
namespace  ablastr::math
 

Functions

template<typename TCoord, typename TVal>
AMREX_GPU_DEVICE AMREX_FORCE_INLINE constexpr auto ablastr::math::linear_interp (TCoord x0, TCoord x1, TVal f0, TVal f1, TCoord x)
 Performs a linear interpolation.
 
template<typename TCoord, typename TVal>
AMREX_GPU_DEVICE AMREX_FORCE_INLINE constexpr auto ablastr::math::bilinear_interp (TCoord x0, TCoord x1, TCoord y0, TCoord y1, TVal f00, TVal f01, TVal f10, TVal f11, TCoord x, TCoord y)
 Performs a bilinear interpolation.
 
template<typename TCoord, typename TVal>
AMREX_GPU_DEVICE AMREX_FORCE_INLINE constexpr auto ablastr::math::trilinear_interp (TCoord x0, TCoord x1, TCoord y0, TCoord y1, TCoord z0, TCoord z1, TVal f000, TVal f001, TVal f010, TVal f011, TVal f100, TVal f101, TVal f110, TVal f111, TCoord x, TCoord y, TCoord z)
 Performs a trilinear interpolation.