SyTen

◆ multi_transpose() [3/3]

template<Rank rank>
Tensor<rank> syten::multi_transpose ( Tensor< rank m,
[[maybe_unused] ] ConstSpan< Index > const &  perm,
Conj  conjugate = Conj::n() 
)
inline

Returns a transposed copy of the input tensor.

The array perm specifies the old position of each new leg, i.e. perm[i] = j means that the new leg i+1 was formerly the leg j. If conjugate is Conj::y(), individual entries are complex-conjugated and basis directions reversed.

References conj(), if_constexpr, std::move(), multi_transpose(), std::vector< T >::push_back(), and rank().

+ Here is the call graph for this function: