Common traits for (mathematical) vectors. More...
#include <MRVectorTraits.h>
Public Types | |
| using | BaseType = T |
| The base template handles scalars (or just non-vectors). | |
| template<typename U > | |
| using | ChangeBaseType = U |
| Changes the vector element type. For scalars, replaces the whole type. | |
Static Public Member Functions | |
| template<typename U > | |
| static constexpr auto && | getElem (int i, U &&value) |
| template<typename U = T> | |
| static constexpr U | diagonal (U v) |
Adding a template parameter to allow instantiating the rest of the class with T == void. | |
Static Public Attributes | |
| static constexpr int | size = 1 |
| static constexpr bool | supportNoInit = false |
Common traits for (mathematical) vectors.