Gradient Augmented Levelset Implementation in CPU & GPU
Interpolate< T, T_GRID, INTERPOLATION_SCHEME > Class Template Reference

#include <interpolate.h>

Public Types

using value_type = T
 

Public Member Functions

 Interpolate ()
 
 ~Interpolate ()
 

Static Public Member Functions

static void compute (const Array< T_GRID, typename T_GRID::position_type > &x_interp, const Array< T_GRID, T > &alpha, Array< T_GRID, T > &alpha_interpolated)
 
static void compute (const Array< T_GRID, typename T_GRID::position_type > &x_interp, GALS::CPU::Levelset< T_GRID, double > &levelset)
 

Detailed Description

template<typename T, typename T_GRID, typename INTERPOLATION_SCHEME = GALS::INTERPOLATION::Linear<T, T_GRID>>
class GALS::CPU::Interpolate< T, T_GRID, INTERPOLATION_SCHEME >

Class to perform interpolation. Default interpolation scheme is set to GALS::INTERPOLATION::Linear<...>.

Definition at line 51 of file interpolate.h.

Member Typedef Documentation

using value_type = T

Definition at line 54 of file interpolate.h.

Constructor & Destructor Documentation

Default constructor

Definition at line 35 of file interpolate.cc.

Destructor

Definition at line 40 of file interpolate.cc.

Member Function Documentation

void compute ( const Array< T_GRID, typename T_GRID::position_type > &  x_interp,
const Array< T_GRID, T > &  alpha,
Array< T_GRID, T > &  alpha_interpolated 
)
static

Compute interpolation of a scalar.

Parameters
x_interpinterpolation points.
alphavariable to interpolate.
alpha_interpolatedinterpolated values are written to this variable.

Definition at line 45 of file interpolate.cc.

void compute ( const Array< T_GRID, typename T_GRID::position_type > &  x_interp,
GALS::CPU::Levelset< T_GRID, double > &  levelset 
)
static

Compute interpolation of a levelset field.

Depending on the interpolation scheme, phi and/or psi will be computed and the corresponding member variables of Levelset class are updated. Variables of _prev are used to updated _interp_prev variables.

Parameters
x_interpinterpolation points.
levelsetvariable whose members will be used and udpated during interpolation.

Definition at line 53 of file interpolate.cc.


The documentation for this class was generated from the following files: