Template Function sequant::detail::antisymmetric_permutation¶
Defined in File result.hpp
Function Documentation¶
-
template<typename F, typename = std::enable_if_t<std::is_invocable_v<F, int>>>
void sequant::detail::antisymmetric_permutation(ParticleRange const &rng, F call_back)¶ This function permutes the given range of antisymmetric particles in-place and calls the given callback function with the parity of the permutation as the argument.
- Parameters:
rng – The antisymmetric particle range.
call_back – A function object which is called with the parity of the particle antisymmetric permutation.