We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following statement in fastplm.cpp always evaluates to false:
fastplm.cpp
interflex/src/fastplm.cpp
Line 178 in 560d317
According to the documentation for std::numeric_limits::quiet_NaN()
A NaN never compares equal to itself.
Armadillo uses std::numeric_limits<T>::quiet_NaN() for datum::nan, so the same caveat applies.
std::numeric_limits<T>::quiet_NaN()
To fix this, use std::isnan() instead: if (std::isnan(coef(i))) {
if (std::isnan(coef(i))) {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following statement in
fastplm.cpp
always evaluates to false:interflex/src/fastplm.cpp
Line 178 in 560d317
According to the documentation for std::numeric_limits::quiet_NaN()
Armadillo uses
std::numeric_limits<T>::quiet_NaN()
for datum::nan, so the same caveat applies.To fix this, use std::isnan() instead:
if (std::isnan(coef(i))) {
The text was updated successfully, but these errors were encountered: