|
DiFfRG
|
#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 |
| using DiFfRG::LinearCoordinates1D< NT >::ctype = NT |
|
inline |
|
inline |
|
inline |
Transform from the physical space to the grid.
| y | physical coordinate |
|
inline |
Transform from the grid to the physical space.
| x | grid coordinate |
|
inline |
|
private |
|
staticconstexpr |
|
private |
| const NT DiFfRG::LinearCoordinates1D< NT >::start |
| const NT DiFfRG::LinearCoordinates1D< NT >::stop |