本文整理汇总了C++中Permutation::flip方法的典型用法代码示例。如果您正苦于以下问题:C++ Permutation::flip方法的具体用法?C++ Permutation::flip怎么用?C++ Permutation::flip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Permutation
的用法示例。
在下文中一共展示了Permutation::flip方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ThLeftNormalForm
pair< ThLeftNormalForm , ThLeftNormalForm > ThLeftNormalForm::cycle( ) const
{
if( theDecomposition.empty( ) )
return pair< ThLeftNormalForm , ThLeftNormalForm >( *this , ThLeftNormalForm( theRank ) );
ThLeftNormalForm result = *this;
Permutation first = *(theDecomposition.begin( ));
if( theOmegaPower%2!=0 )
first = first.flip( );
result.theDecomposition.push_back( first );
result.theDecomposition.pop_front( );
result.adjust( );
return pair< ThLeftNormalForm , ThLeftNormalForm >( result , ThLeftNormalForm(first) );
}
示例2: getPullback
Permutation ThLeftNormalForm::getPullback( const Permutation& s ) const
{
Permutation result;
Permutation Delta = Permutation::getHalfTwistPermutation( theRank );
Permutation B1 = *theDecomposition.begin( );
Permutation b1 = s;
if( theOmegaPower%2!=0 ) {
B1 = B1.flip( );
b1 = b1.flip( );
}
B1 = Delta * -B1;
Permutation b0 = -B1 * B1.LeftLCM( s.flip( ) );
for( list< Permutation >::const_iterator d_it=++theDecomposition.begin( ) ; d_it!=theDecomposition.end( ) ; ++d_it ) {
const Permutation& B = *d_it;
b1 = -B * B.LeftLCM( b1 );
}
return getSimpleSummitConjugator( b0.LeftLCM( b1 ) );
}