Constructors

The State class come with different constructors. Besides the Default constructor, an instance can be initialized using a std::vector<IntType> in various ways, see Constructors with std::vector, or using Copy constructors using State and std::array. The Basis requires more complex constructors, Constructors with indexing, where the index is defined by the usual integer counting with basis \(Q\). The constructors initialize an instance that refers to a given index within a range defined by start and end:

(1)\[\textbf{index} = \sum_{i=\textbf{start}}^{\textbf{end-1}} \quad \sigma_i \cdot\textbf{Q}^{i-\textbf{start}} \, .\]

More details can be found in Functions.