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.
input | tensor with blocks to sort |
leg | leg of the tensor, blocks are sorted such that those transforming the same on that leg are in the same bucket |
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().