Ensign
Low-rank framework for multi-core CPUs and GPUs
Loading...
Searching...
No Matches
index.hpp File Reference

Converts between vector indices and combined linear indices. More...

#include <iterator>
#include <vector>
#include <generic/common.hpp>
#include <generic/storage.hpp>

Go to the source code of this file.

Namespaces

namespace  Ensign
 Core namespace for Ensign's numerical algorithms and data structures.
 
namespace  Ensign::IndexFunction
 Conversion and iteration helpers for multidimensional indices.
 

Functions

template<class InputIt , class InputItInt >
Index Ensign::IndexFunction::vec_index_to_comb_index (InputIt first, InputIt last, InputItInt first_int)
 
template<class InputItInt , class OutputIt >
void Ensign::IndexFunction::comb_index_to_vec_index (Index comb_index, InputItInt first, OutputIt d_first, OutputIt d_last)
 
template<class InputIt , class OutputIt >
void Ensign::IndexFunction::incr_vec_index (InputIt first, OutputIt d_first, OutputIt d_last)
 

Detailed Description

Converts between vector indices and combined linear indices.

Definition in file index.hpp.