SyTen

◆ transpose_recursive_impl()

template<Rank rank, typename Scalar >
void syten::transpose_recursive_impl ( ConstSpan< Scalar > const  inp,
MutSpan< Scalar >  out,
MutSpan< Scalar >  workspace,
ConstSpan< IndexNumber perm,
ConstSpan< Index dim 
)

Implementation of the recursive dense tensor transposition.

Remarks
During the recursive descend, the rank may be reduced to one or two, so we need to handle those specifically again here.

References syten::LimVec< Type, max, MaxType, type >::begin(), syten::SpanImpl::MutSpan< T >::begin(), syten::Deparallelise::cols(), std::copy(), syten::RepRegister::dim(), syten::LimVec< Type, max, MaxType, type >::end(), if_constexpr, std::is_sorted(), rank(), syten::Deparallelise::rows(), SYTEN_ASSERT, and transpose_recursive_impl().

Referenced by transpose_recursive_impl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: