WarpX
Namespaces | Functions
LinearInterpolation.H File Reference
#include <AMReX_Extension.H>
#include <AMReX_GpuQualifiers.H>

Go to the source code of this file.

Namespaces

 utils
 
 utils::algorithms
 

Functions

template<typename TCoord , typename TVal >
AMREX_GPU_DEVICE constexpr AMREX_FORCE_INLINE auto utils::algorithms::linear_interp (TCoord x0, TCoord x1, TVal f0, TVal f1, TCoord x)
 Performs a linear interpolation. More...
 
template<typename TCoord , typename TVal >
AMREX_GPU_DEVICE constexpr AMREX_FORCE_INLINE auto utils::algorithms::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. More...
 
template<typename TCoord , typename TVal >
AMREX_GPU_DEVICE constexpr AMREX_FORCE_INLINE auto utils::algorithms::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. More...