Common traits for all types used as gradients. More...
#include <gradientTraits.hpp>
Public Types | |
using | Gradient = T_Gradient |
See TraitsImplementation. | |
using | Real = Gradient |
The base value used in the gradient entries. | |
Static Public Member Functions | |
static Real & | at (Gradient &gradient, size_t dim) |
Get the entry at the given index. | |
static Real const & | at (Gradient const &gradient, size_t dim) |
Get the entry at the given index. | |
static std::array< AtomicTraits::RemoveAtomic< Real >, dim > | toArray (Gradient const &gradient) |
Converts the (possibly multi-component) gradient to an array of Reals. | |
Static Public Attributes | |
static size_t constexpr | dim = 1 |
Number of dimensions this gradient value has. | |
Common traits for all types used as gradients.
T_Gradient | The type of the gradient. |