22 std::ostringstream error_message;
23 error_message <<
"NaNguard::checkOneParticleRatio error message: " << info << std::endl
24 <<
" ratio = " << ratio << std::endl;
25 throw std::runtime_error(error_message.str());
33 std::ostringstream error_message;
34 error_message <<
"NaNguard::checkOneParticleGradients error message: " << info << std::endl;
35 for (
int i = 0; i < grads.
size(); ++i)
37 error_message <<
" grads[" << i <<
"] = " << grads[i] << std::endl;
38 throw std::runtime_error(error_message.str());
QMCTraits::QTFull::ValueType PsiValue
helper functions for EinsplineSetBuilder
double norm(const zVec &c)
static void checkOneParticleRatio(const PsiValue &ratio, const std::string_view info)
check if ratio is NaN and throw an error if yes.
static void checkOneParticleGradients(const GradType &grads, const std::string_view info)
check if any gradient component (x,y,z) is NaN and throw an error if yes.
Tensor< typename BinaryReturn< T1, T2, OpMultiply >::Type_t, D > dot(const AntiSymTensor< T1, D > &lhs, const AntiSymTensor< T2, D > &rhs)
bool isnan(float a)
return true if the value is NaN.