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. | |
Public Member Functions | |
| inlinestatic Real & | at (Gradient &gradient, size_t dim) |
| Get the entry at the given index. | |
| inlinestatic Real const & | at (Gradient const &gradient, size_t dim) |
| Get the entry at the given index. | |
| inlinestatic 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. |