SyTen

◆ transpose_exchange() [2/3]

template<Rank rank, typename Scalar >
SparseTensor< rank, Scalar > syten::transpose_exchange ( SparseTensor< rank, Scalar > const &  a,
ConstSpan< Index axes,
bool  conjugate = false 
)
inline

Transposes the two legs specified by axes of the sparse tensor a and conjugates each element if conjugate is true.

References conj(), syten::SparseTensor< rank, Scalar >::dims(), syten::SparseTensor< rank, Scalar >::insert(), syten::SparseTensor< rank, Scalar >::isSingleton(), std::make_pair(), std::move(), std::swap(), SYTEN_ASSERT_DEBUG, and syten::SparseTensor< rank, Scalar >::valSingleton().

+ Here is the call graph for this function: