-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
@eddelbuettel probably want to raise this with @conradsnicta. There's still a use of is_finite() within arma::hist() under Armadillo 15.0.2-1
| if(is_finite(val)) |
compilation trail for `is_finite()` warning
In file included from model.cpp:1:
In file included from /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57:
In file included from /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo:827:
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo_bits/glue_hist_meat.hpp:112:12: warning: 'is_finite<double>' is deprecated: change arma::is_finite(val) to std::isfinite(val) [-Wdeprecated-declarations]
112 | if(is_finite(val))
| ^
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo_bits/glue_hist_meat.hpp:242:16: note: in instantiation of function template specialization 'arma::glue_hist::apply_noalias<double>' requested here
242 | glue_hist::apply_noalias(tmp, UA.M, UB.M, dim);
| ^
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6229:14: note: in instantiation of function template specialization 'arma::glue_hist_default::apply<arma::Col<double>, arma::Col<double>>' requested here
6229 | glue_type::apply(*this, X);
| ^
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:528:12: note: in instantiation of function template specialization 'arma::Mat<unsigned int>::operator=<arma::Col<double>, arma::Col<double>, arma::glue_hist_default>' requested here
528 | Mat<eT>::operator=(X.get_ref());
| ^
model.cpp:496:20: note: in instantiation of function template specialization 'arma::Col<unsigned int>::Col<arma::mtGlue<unsigned int, arma::Col<double>, arma::Col<double>, arma::glue_hist_default>>' requested here
496 | arma::uvec H = arma::hist(T, arma::linspace<arma::vec>(0, J, J + 1));
| ^
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:164:3: note: 'is_finite<double>' has been explicitly marked deprecated here
164 | [[deprecated("change arma::is_finite(val) to std::isfinite(val)")]]
| ^
1 warning generated.
Metadata
Metadata
Assignees
Labels
No labels