SyTen

◆ overThreshold()

template<typename Scalar , typename ThresholdType , typename std::enable_if< std::is_same< Scalar, typename ScalarBase< Scalar >::type >::value, int >::type = 0>
bool syten::overThreshold ( Scalar const &  x,
ThresholdType const &  threshold 
)

Returns true if the absolute value of the argument is larger than the threshold.

Returns true if the absolute value squared of the argument is larger than the threshold squared (std::complex<> specialisation)

References abs(), and syten::Caching::threshold.

Referenced by syten::SparseTensor< rank, Scalar >::assignAdd(), avgAbs(), syten::MPS::SymConv::SU2::Converter_SU2U1::cast(), syten::Delinearise::cols_only(), syten::Delinearise::compare_residual(), eigenDavidson(), eliminate_to_zero(), syten::T3N::BasisTransformation::entropy(), entropy(), syten::mutualInfo::entropy(), syten::MPS::DMRG::Worker::expand_to_left(), syten::MPS::TDVP::Worker::expand_to_left(), syten::MPS::expand_to_left(), syten::MPS::DMRG::Worker::expand_to_right(), syten::MPS::TDVP::Worker::expand_to_right(), syten::MPS::expand_to_right(), syten::T3N::DMRG::Run::expandBranch(), syten::T3N::TDVP::Worker::expandPhysical(), syten::IPEPS::FullUpdate::fast_update(), syten::MPS::RandomState::generateSampledState(), syten::IPEPS::FullCTM::grow_b(), syten::IPEPS::FullCTM::grow_l(), syten::IPEPS::FullCTM::grow_r(), syten::IPEPS::FullCTM::grow_t(), syten::IPEPS::FullCTM::init(), invertDiagonal(), isParallel(), syten::Krylov::ClassicImpl::OrthoMat< Lanczos >::newOverlapsOK(), nz_abs(), syten::Krylov::ClassicImpl::ReorthoMat< Lanczos >::operator()(), syten::MPS::Operator::operator*=(), orthogonalise(), orthogonalise_arithmetic_imp(), orthogonalise_inplace(), orthogonalise_solve_svd(), syten::Delinearise::postprocess_coefficient(), pseudo_inverse_svd_cm(), syten::T3N::VarationalTrunc::run(), syten::MPS::TDVP::LBOWorker::run(), syten::T3N::DMRG::Run::solveBranching(), syten::MPS::DMRG::Worker::solveLocalTwoSite(), syten::T3N::DMRG::Run::solvePhysical(), to_string_real(), to_string_real_def(), syten::MPS::State::truncateVariational(), and von_neumann_entropy().

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