|
private |
Checks the norm of a tensor and randomises it if needed.
t | The tensor. |
keep_size | Keeps 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().