◆ getAvgBlocksize()

template<Rank rank>
Index syten::Tensor< rank >::getAvgBlocksize ( Index  leg) const

get averaged sidelength of blocks as \( \left[\frac{1}{N} \sum_i m_i^3 \right]^{1/3} \)

This is a fairly good measure of computational cost as matrix-matrix multiplication tends to scale with the third power of the blocksize. One block of the resulting size will then likely cost as much as all blocks of the current size.

References syten::Tensor< rank >::b(), syten::hasMember(), std::llround(), std::pow(), std::vector< T >::push_back(), std::vector< T >::size(), and syten::sum().

+ Here is the call graph for this function: