Ensign
Low-rank framework for multi-core CPUs and GPUs
Loading...
Searching...
No Matches
Ensign::IndexFunction Namespace Reference

Conversion and iteration helpers for multidimensional indices. More...

Functions

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

Detailed Description

Conversion and iteration helpers for multidimensional indices.

Function Documentation

◆ comb_index_to_vec_index()

template<class InputItInt , class OutputIt >
void Ensign::IndexFunction::comb_index_to_vec_index ( Index  comb_index,
InputItInt  first,
OutputIt  d_first,
OutputIt  d_last 
)

Definition at line 31 of file index.hpp.

◆ incr_vec_index()

template<class InputIt , class OutputIt >
void Ensign::IndexFunction::incr_vec_index ( InputIt  first,
OutputIt  d_first,
OutputIt  d_last 
)

Definition at line 43 of file index.hpp.

◆ vec_index_to_comb_index()

template<class InputIt , class InputItInt >
Index Ensign::IndexFunction::vec_index_to_comb_index ( InputIt  first,
InputIt  last,
InputItInt  first_int 
)

Definition at line 19 of file index.hpp.