#include <string>
#include <stdexcept>
#include <cmath>
#include <array>
Go to the source code of this file.
|
| #define | M_PI 3.14159265358979323846 |
| |
|
| template<typename baseT , typename expoT > |
| constexpr baseT | gr::Utils::POW (baseT base, expoT expo) |
| | Compile time pow. More...
|
| |
| template<bool validate, class ndIndexT , class IndexT , class SizeT > |
| constexpr IndexT | gr::Utils::UnrollIndexLoop (const ndIndexT &coord, IndexT cdim, SizeT gsize) |
| | Convert a normalized n-d vector to a linear index in a uniform regular grid This function is recursive, and unrolled at compile time (loop over n). More...
|
| |
| template<bool validate, class ndIndexT , class IndexT , class SizeT > |
| constexpr IndexT | gr::Utils::UnrollIndexLoop (const ndIndexT &coord, const ndIndexT &offset, IndexT cdim, SizeT gsize) |
| | Convert a normalized n-d vector to a linear index in a uniform regular grid, moved by moved by an offset defined as a integer move in the n-d grid. More...
|
| |
| #define M_PI 3.14159265358979323846 |