multiplication of permutations in different notation

This commit is contained in:
2023-11-08 16:56:57 +01:00
parent c173bb6413
commit f8b2ee6e1a
2 changed files with 18 additions and 0 deletions

View File

@@ -642,6 +642,22 @@ NRPerm<T> rr=pp*qq;
return CyclePerm<T>(rr);
}
//mixed type multiplications
template <typename T>
NRPerm<T> NRPerm<T>::operator*(const CyclePerm<T> &r) const
{
NRPerm<T> rr(r,this->size());
return *this * rr;
}
template <typename T>
NRPerm<T> CyclePerm<T>::operator*(const NRPerm<T> &r) const
{
NRPerm<T> tt(*this,r.size());
return tt*r;
}
template <typename T>
void CyclePerm<T>::simplify(bool keep1)
{