SyTen

◆ is_perm_fermionic()

template<Rank rank>
bool syten::is_perm_fermionic ( TensorBlock< rank > const &  in,
ConstSpan< int >  perms,
ConstSpan< Index current_order 
)

Returns true if swapping the legs of in as to conform to perm induces a fermionic factor.

References std::array< T >::begin(), std::array< T >::end(), std::iota(), minus_on_swap(), rank(), std::swap(), SYTEN_ASSERT, and syten::TensorBlock< rank >::trans().

Referenced by syten::STensorImpl::change_fermionic_order(), and syten::TensorProd::prod_impl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: