TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
#include <nda/traits.hpp>
Stores information about the memory layout and the stride order of an array/view.
The stride order of an N-dimensional array/view is a specific permutation of the integers from 0 to N-1, i.e. (i1, i2, ..., iN)
, which is encoded in a uint64_t
(note that this limits the max. number of dimensions to 16). It specifies the order in which the dimensions are traversed with i1
being the slowest and iN
the fastest.
For example, a 3D array/view with C-order has a stride order of (0, 1, 2)
, while the Fortran-order would be (2, 1, 0)
.
Definition at line 295 of file traits.hpp.
Public Attributes | |
layout_prop_e | prop = layout_prop_e::none |
Memory layout properties of the array/view. | |
uint64_t | stride_order = 0 |
Stride order of the array/view. | |