Classes | Functions
Index.hpp File Reference

Defines class template Index. More...

#include <array>
#include <cstddef>
#include <limits>
#include <ostream>
#include "ErrorHandling/Assert.hpp"
#include "Utilities/Gsl.hpp"
#include "Utilities/MakeArray.hpp"
#include "Utilities/Requires.hpp"
#include "Utilities/TypeTraits.hpp"

Go to the source code of this file.

Classes

class  Index< Dim >
 An integer multi-index. More...
 

Functions

template<size_t N>
size_t collapsed_index (const Index< N > &index, const Index< N > &extents) noexcept
 Get the collapsed index into a 1D array of the data corresponding to this Index. Note that the first dimension of the Index varies fastest when computing the collapsed index.
 
template<size_t N>
std::ostreamoperator<< (std::ostream &os, const Index< N > &i)
 

Detailed Description

Defines class template Index.