SUNphi  1.0
Indexer.hpp File Reference

Header file for the definition of an indexer. More...

Go to the source code of this file.

Classes

struct  SUNphi::_Indexer< IDyn, T, class >
 
struct  SUNphi::_Indexer< IDyn, TensKind< H, Oth... > >
 

Functions

template<class TK , size_t NDynamic, class... Args>
static constexpr int SUNphi::index (const DynSizes< NDynamic > &dynSizes, const Args &...args)
 

Detailed Description

Header file for the definition of an indexer.

Definition in file Indexer.hpp.

Function Documentation

template<class TK , size_t NDynamic, class... Args>
static constexpr int SUNphi::index ( const DynSizes< NDynamic > &  dynSizes,
const Args &...  args 
)
static

Index function for a TensKind

Wraps the call to the Indexer class method The index is built in this way. Let us assume three component case

a+Na*(b+Nb*c)

this is changed into a more homogeneous

a+Na*(b+Nb*(c+Nc*0))

so that every component needs to perform the following operation

i+N*ext

where ext is the result of the calculation for the outer component. Starting from 0, the calculation ends when no more component is present (terminating case).

Parameters
dynSizesSizes of the dynamical components
argsComponents index

Definition at line 139 of file Indexer.hpp.