class
#include <eckit/utils/HyperCube.h>
HyperCube Helper class to handle multi-dimension objects
Public types
-
using Dimensions = std::
vector<Ordinal> -
using Coordinates = std::
vector<Ordinal> -
using Remapping = std::
vector<Ordinal>
Public static functions
Constructors, destructors, conversion operators
- HyperCube(const Dimensions& d) explicit
Public functions
- auto index(const Coordinates&) const -> Ordinal
- Translate coordinates into an index to a 1 dimension array.
- auto count() const -> Ordinal
- Method is inlined for speed.
- void coordinates(Ordinal index, Coordinates&) const
- Translate index to coordinates.
- auto dimensions() const -> const Dimensions&
- auto dimensions() -> Dimensions&
- auto dimensions(Ordinal n) const -> Ordinal
- auto size() const -> Ordinal
- auto addToDimension(Ordinal which, Ordinal where, Ordinal count, Remapping&) const -> HyperCube
Function documentation
Ordinal eckit:: HyperCube:: index(const Coordinates&) const
Translate coordinates into an index to a 1 dimension array.
Method is inlined for speed.
HyperCube eckit:: HyperCube:: addToDimension(Ordinal which,
Ordinal where,
Ordinal count,
Remapping&) const
Returns | the 'remapping' std:: |
---|