Creates a copy of the input tensor and transposes it according to the permutation perm
.
This does not change the fermionic ordering of the tensor but only adapts the computational layout.
References syten::STensorImpl::STensor::b(), syten::STensorImpl::STensor::get_fermionic_order(), std::move(), multi_transpose(), syten::YesNo< struct _prod_conj >::n(), syten::pi, syten::STensorImpl::STensor::set_bases(), syten::STensorImpl::STensor::set_fermionic_order(), syten::SpanImpl::ConstSpan< T >::size(), SYTEN_ASSERT_MSG, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visnz().
Referenced by dense(), eigen_sym(), expand(), hadamard(), multi_transpose(), and operator+=().