#include using triqs::arrays::array; using triqs::arrays::matrix; using triqs::arrays::vector; using triqs::arrays::permutation; int main() { // A 3d array of long, C ordering, no option array A3(1, 2, 3); // A 2d array of double, C ordering, with explicit Bound Checking array B(1, 2); // a matrix of long matrix M(2, 2); // a vector of double vector V(10); // arrays with custom memory layout // C-style array A0(2, 3, 4); array A0b; // same type but empty // Fortran-style array A4(2, 3, 4, FORTRAN_LAYOUT); array A1b(FORTRAN_LAYOUT); // same type but empty // custom : (i,j,k) : index j is fastest, then k, then i array A2(2, 3, 4, triqs::arrays::make_memory_layout(1, 0, 2)); }