DiFfRG
Loading...
Searching...
No Matches
DiFfRG::IndexStack< Idx > Class Template Reference

#include <stack_coordinates.hh>

Public Types

using ctype = Idx
 

Public Member Functions

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

Public Attributes

const Idx start
 
const Idx stop
 

Static Public Attributes

static constexpr uint dim = 1
 

Private Attributes

const uint m_size
 

Member Typedef Documentation

◆ ctype

template<typename Idx >
using DiFfRG::IndexStack< Idx >::ctype = Idx

Constructor & Destructor Documentation

◆ IndexStack() [1/2]

template<typename Idx >
DiFfRG::IndexStack< Idx >::IndexStack ( Idx start,
Idx stop )
inline

◆ IndexStack() [2/2]

template<typename Idx >
template<typename Idx2 >
DiFfRG::IndexStack< Idx >::IndexStack ( const LinearCoordinates1D< Idx2 > & other)
inline

Member Function Documentation

◆ backward()

template<typename Idx >
Idx __forceinline__ __device__ __host__ DiFfRG::IndexStack< Idx >::backward ( const Idx y) const
inline

Transform from the physical space to the grid.

Parameters
yphysical coordinate
Returns
double grid coordinate

◆ forward()

template<typename Idx >
Idx __forceinline__ __device__ __host__ DiFfRG::IndexStack< Idx >::forward ( const Idx x) const
inline

Transform from the grid to the physical space.

Parameters
xgrid coordinate
Returns
NumberType physical coordinate

◆ size()

template<typename Idx >
uint DiFfRG::IndexStack< Idx >::size ( ) const
inline

Member Data Documentation

◆ dim

template<typename Idx >
uint DiFfRG::IndexStack< Idx >::dim = 1
staticconstexpr

◆ m_size

template<typename Idx >
const uint DiFfRG::IndexStack< Idx >::m_size
private

◆ start

template<typename Idx >
const Idx DiFfRG::IndexStack< Idx >::start

◆ stop

template<typename Idx >
const Idx DiFfRG::IndexStack< Idx >::stop

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