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().