DiFfRG
Loading...
Searching...
No Matches
DiFfRG::LinearCoordinates1D< NT > Class Template Reference

#include <coordinates.hh>

Public Types

using ctype = NT
 

Public Member Functions

 LinearCoordinates1D (uint grid_extent, double start, double stop)
 
template<typename NT2 >
 LinearCoordinates1D (const LinearCoordinates1D< NT2 > &other)
 
NT __forceinline__ __device__ __host__ forward (const uint &x) const
 Transform from the grid to the physical space.
 
NT __forceinline__ __device__ __host__ backward (const NT &y) const
 Transform from the physical space to the grid.
 
uint size () const
 

Public Attributes

const NT start
 
const NT stop
 

Static Public Attributes

static constexpr uint dim = 1
 

Private Attributes

const uint grid_extent
 
NT a
 

Member Typedef Documentation

◆ ctype

template<typename NT >
using DiFfRG::LinearCoordinates1D< NT >::ctype = NT

Constructor & Destructor Documentation

◆ LinearCoordinates1D() [1/2]

template<typename NT >
DiFfRG::LinearCoordinates1D< NT >::LinearCoordinates1D ( uint grid_extent,
double start,
double stop )
inline

◆ LinearCoordinates1D() [2/2]

template<typename NT >
template<typename NT2 >
DiFfRG::LinearCoordinates1D< NT >::LinearCoordinates1D ( const LinearCoordinates1D< NT2 > & other)
inline

Member Function Documentation

◆ backward()

template<typename NT >
NT __forceinline__ __device__ __host__ DiFfRG::LinearCoordinates1D< NT >::backward ( const NT & y) const
inline

Transform from the physical space to the grid.

Parameters
yphysical coordinate
Returns
double grid coordinate

◆ forward()

template<typename NT >
NT __forceinline__ __device__ __host__ DiFfRG::LinearCoordinates1D< NT >::forward ( const uint & x) const
inline

Transform from the grid to the physical space.

Parameters
xgrid coordinate
Returns
NumberType physical coordinate

◆ size()

template<typename NT >
uint DiFfRG::LinearCoordinates1D< NT >::size ( ) const
inline

Member Data Documentation

◆ a

template<typename NT >
NT DiFfRG::LinearCoordinates1D< NT >::a
private

◆ dim

template<typename NT >
uint DiFfRG::LinearCoordinates1D< NT >::dim = 1
staticconstexpr

◆ grid_extent

template<typename NT >
const uint DiFfRG::LinearCoordinates1D< NT >::grid_extent
private

◆ start

template<typename NT >
const NT DiFfRG::LinearCoordinates1D< NT >::start

◆ stop

template<typename NT >
const NT DiFfRG::LinearCoordinates1D< NT >::stop

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