SyTen

◆ sort_VecIdx_single()

template<Rank rank>
std::vector< std::vector< Index > > syten::TensorBlocks::sort_VecIdx_single ( Tensor< rank > const &  input,
Index const  leg 
)

Sort the blocks of the supplied tensor into buckets corresponding to the specified leg.

Parameters
inputtensor with blocks to sort
legleg of the tensor, blocks are sorted such that those transforming the same on that leg are in the same bucket
Returns
a vector of buckets, where each bucket is a vector of indices of the blocks of the input tensor.

References syten::Tensor< rank >::begin(), std::copy(), syten::Tensor< rank >::empty(), std::iota(), std::min_element(), std::partition_point(), std::vector< T >::reserve(), syten::Tensor< rank >::size(), and std::sort().

Referenced by syten::tensorSortBuckets().

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