SyTen

◆ checkNormAndStabilise()

void syten::T3N::DMRG::Run::checkNormAndStabilise ( STensor t,
Vec< SBasisId > const &  keep_size = {} 
)
private

Checks the norm of a tensor and randomises it if needed.

Parameters
tThe tensor.
keep_sizeKeeps the input size on these legs if randomisation necessary.

References std::vector< T >::begin(), std::count(), std::vector< T >::end(), syten::logGE(), syten::logGW(), syten::STensorImpl::randomise_blocks(), std::vector< T >::size(), syten::STensorImpl::snorm(), SYTEN_ZNORM_THRESHOLD, and syten::underThreshold().

+ Here is the call graph for this function: