more specific warning

This commit is contained in:
conrad
2022-01-10 14:42:18 +10:00
parent daca57f026
commit 39d7e52edd
+7 -2
View File
@@ -93,9 +93,9 @@ op_find::helper
const eT val = X.aux;
if(arma_config::debug && arma_isnan(val))
if((is_same_type<op_type, op_rel_eq>::yes || is_same_type<op_type, op_rel_noteq>::yes) && arma_config::debug && arma_isnan(val))
{
arma_debug_warn_level(1, "find(): NaN is not comparable to any value, even other NaN values");
arma_debug_warn_level(1, "find(): NaN is not equal to anything; suggest to use find_nonfinite() instead");
}
const Proxy<T1> A(X.m);
@@ -226,6 +226,11 @@ op_find::helper
const eT val = X.aux;
if((is_same_type<op_type, op_rel_eq>::yes || is_same_type<op_type, op_rel_noteq>::yes) && arma_config::debug && arma_isnan(val))
{
arma_debug_warn_level(1, "find(): NaN is not equal to anything; suggest to use find_nonfinite() instead");
}
const Proxy<T1> A(X.m);
ea_type PA = A.get_ea();