TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
layout.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 Simons Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0.txt
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Authors: Nils Wentzell
16
22#pragma once
23
25#include "./layout/for_each.hpp"
26#include "./layout/idx_map.hpp"
28#include "./layout/policies.hpp"
29#include "./layout/range.hpp"
30#include "./layout/rect_str.hpp"
Provides a way to check the bounds when accessing elements/slices of an array or a view.
Provides for_each functions for multi-dimensional arrays/views.
Provides a class that maps multi-dimensional indices to a linear index and vice versa.
Provides definitions of various layout policies.
Provides utilities to work with permutations and to compactly encode/decode std::array objects.
Includes the itertools header and provides some additional utilities.
Provides an extension to nda::idx_map to support string indices.
Provides utilities that determine the resulting nda::idx_map when taking a slice of an nda::idx_map.