#include <IeeeMath.h>
Static Public Member Functions | |
template<class T> | |
static bool | isNaN (T x) |
Determines if a number is a NaN. |
Definition at line 45 of file IeeeMath.h.
bool IeeeMath::isNaN | ( | T | x | ) | [inline, static] |
Determines if a number is a NaN.
It checks for both signaling NaNs and quiet NaNs.
x | determines if this number is NaN |
It seems difficult to get a portable version of this function. your mileage may vary!
Hopefully this function won't give any more false positives.
Definition at line 35 of file IeeeMath.cpp.
Referenced by QMCDouble::add(), QMCMikesBracketingStepLengthSelector::bracket(), QMCSCFJastrow::calculate_Modified_Grad_PsiRatio(), QMCWalker::calculateMoveAcceptanceProbability(), QMCRun::calculatePopulationSizeBiasCorrectionFactor(), QMCThreeBodyJastrow::collectForPair(), Williamson2CorrelationFunction::evaluate(), QMCEigenSearch::get_a_diag(), QMCEigenSearch::getParameters(), QMCDouble::isNotValid(), QMCWalkerData::isSingular(), QMCObjectiveFunctionResult::mikes_penalty_scaler(), QMCCorrelatedSamplingVMCOptimization::optimize(), QMCWalker::processPropagation(), QMCWalker::reweight_walker(), QMCObjectiveFunctionResult::set_energy_ave(), QMCObjectiveFunctionResult::set_energy_var(), QMCObjectiveFunctionResult::set_log_weights_ave(), QMCObjectiveFunctionResult::set_log_weights_var(), and QMCWalker::setR().