TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::basic_layout< StaticExtents, StrideOrder, LayoutProp >

#include <nda/layout/policies.hpp>

Detailed Description

template<uint64_t StaticExtents, uint64_t StrideOrder, layout_prop_e LayoutProp>
struct nda::basic_layout< StaticExtents, StrideOrder, LayoutProp >

Generic layout policy with arbitrary order.

Template Parameters
StaticExtentCompile-time known shape.
StrideOrderOrder in which the dimensions are stored in memory.
LayoutPropCompile-time guarantees about the layout of the data in memory.

Definition at line 115 of file policies.hpp.

Public Types

using contiguous_t = basic_layout<StaticExtents, StrideOrder, layout_prop_e::contiguous>
 The same layout policy, but with guarantee of contiguity.
 
template<int Rank>
using mapping = idx_map<Rank, StaticExtents, StrideOrder, LayoutProp>
 Multi-dimensional to flat index mapping.
 
using with_lowest_guarantee_t = basic_layout<StaticExtents, StrideOrder, layout_prop_e::none>
 The same layout policy, but with no guarantee of contiguity.
 

The documentation for this struct was generated from the following file: