SyTen

◆ sort_VecBlocks_all()

template<Rank rank>
std::vector< std::vector< TensorBlock< rank > > > syten::TensorBlocks::sort_VecBlocks_all ( std::vector< TensorBlock< rank > > &&  blocks)

Sorts the blocks of the input tensor into buckets according their full transformation specification.

Blocks in one bucket transform identically on every leg.

Parameters
blocksvector of the blocks to sort
Returns
a vector of vectors of TensorBlocks. Each inner vector is one bucket.

References std::vector< T >::back(), std::copy(), std::vector< T >::emplace_back(), std::iota(), std::min_element(), std::move(), std::partition_point(), std::vector< T >::reserve(), std::vector< T >::size(), and std::sort().

Referenced by syten::tensorSortBuckets().

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