Template Function sequant::count_cycles¶
Defined in File spin.hpp
Function Documentation¶
-
template<typename Seq0, typename Seq1>
std::size_t sequant::count_cycles(Seq0 &&v0, const Seq1 &v1)¶ Returns the number of cycles.
Counts the number of cycles of a permutation represented in a 2-line form by stacking
v0
andv1
on top of each other.- Template Parameters:
Seq0 – (reference to) a container type
Seq1 – (reference to) a container type
- Parameters:
v0 – first sequence; if passed as an rvalue reference, it is moved from
v1 – [in] second sequence
- Pre:
v0
is a permutation ofv1
- Returns:
the number of cycles