SyTen

◆ DenseIterRestricted()

template<Rank rank>
syten::DenseIterRestricted< rank >::DenseIterRestricted ( std::array< Index, rank > const &  dim_,
std::array< Index, rank > const &  ord_,
std::array< Index, rank > const &  fixed_ 
)
inline

Ctor for nontrivial ordering.

Parameters
dim_dimensions of individual indices
ord_order of increase, ord_[rank-1] is the first index to be increased, then ord_[rank-2].
fixed_if fixed[i] = dim_[i], the i-th index runs from 0 to dim_[i]. Otherwise, the i-th index is kept at value fixed_[i].

ord_[i] = i+1 for all i between 0 and rank-1 would be equivalent to the trivial ordering.

References syten::DenseIterRestricted< rank >::alive, syten::DenseIterRestricted< rank >::cur, syten::DenseIterRestricted< rank >::dim, syten::DenseIterRestricted< rank >::ptrs, and syten::rank().

+ Here is the call graph for this function: