* installing *source* package 'sgd' ... ** this is package 'sgd' version '1.1.2' ** package 'sgd' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 14.2.0' make[1]: Entering directory '/d/temp/2025_09_29_01_50_00_31777/Rtmp6h6FmS/R.INSTALL1cc1ce48135b/sgd/src' g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.5.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/BH/include' -I'D:/RCompile/CRANpkg/lib/4.5/bigmemory/include' -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o In file included from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo:26, from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57, from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/RcppArmadillo.h:32, from RcppExports.cpp:4: D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/config.hpp:373:72: note: '#pragma message: NOTE: option ARMA_CRIPPLED_LAPACK is not supported' 373 | #pragma message ("NOTE: option ARMA_CRIPPLED_LAPACK is not supported") | ^ g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.5.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/BH/include' -I'D:/RCompile/CRANpkg/lib/4.5/bigmemory/include' -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c sgd.cpp -o sgd.o In file included from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo:26, from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57, from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/RcppArmadillo.h:32, from basedef.h:6, from sgd.cpp:1: D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/config.hpp:373:72: note: '#pragma message: NOTE: option ARMA_CRIPPLED_LAPACK is not supported' 373 | #pragma message ("NOTE: option ARMA_CRIPPLED_LAPACK is not supported") | ^ In file included from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:17, from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/shared_ptr.hpp:17, from D:/RCompile/CRANpkg/lib/4.5/bigmemory/include/bigmemory/BigMatrix.h:10, from D:/RCompile/CRANpkg/lib/4.5/bigmemory/include/bigmemory/MatrixAccessor.hpp:4, from basedef.h:7: D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:326:33: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 326 | explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) ) | ^~~~~~~~ In file included from D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/memory:78, from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo:38: D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:354:31: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 354 | explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn() | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:365:22: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 365 | shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn() | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:423:34: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 423 | shared_ptr & operator=( std::auto_ptr<Y> & r ) | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:430:34: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 430 | shared_ptr & operator=( std::auto_ptr<Y> && r ) | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)': D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/smart_ptr/shared_ptr.hpp:432:38: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 432 | this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this ); | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ In file included from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/bind/mem_fn.hpp:23, from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/mem_fn.hpp:22, from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/function/function_template.hpp:16, from D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/function.hpp:16, from basedef.h:8: D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/get_pointer.hpp: At global scope: D:/RCompile/CRANpkg/lib/4.5/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 48 | template<class T> T * get_pointer(std::auto_ptr<T> const& p) | ^~~~~~~~ D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ In file included from sgd.cpp:3: model/cox_model.h: In member function 'arma::mat cox_model::gradient(unsigned int, const arma::mat&, const data_set&) const': model/cox_model.h:26:25: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 26 | for (int i = j-1; i < j; --i) { | ~~^~~ model/cox_model.h:28:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 28 | if (i == j-1) { | ~~^~~~~~ model/cox_model.h:29:27: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] 29 | for (int k = i; k < data.n_samples; ++k) { | ~~^~~~~~~~~~~~~~~~ In file included from sgd.cpp:11: sgd/explicit_sgd.h: In member function 'arma::mat explicit_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&)': sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ In file included from D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo:518: D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ In file included from sgd.cpp:12: sgd/implicit_sgd.h: In member function 'arma::mat implicit_sgd::update(unsigned int, const arma::mat&, const data_set&, cox_model&, bool&)': sgd/implicit_sgd.h:128:25: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 128 | for (int i = j-1; i < j; --i) { | ~~^~~ sgd/implicit_sgd.h:130:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 130 | if (i == j-1) { | ~~^~~~~~ sgd/implicit_sgd.h:131:27: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] 131 | for (int k = i; k < data.n_samples; ++k) { | ~~^~~~~~~~~~~~~~~~ sgd/implicit_sgd.h:150:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 150 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ In file included from sgd.cpp:13: sgd/momentum_sgd.h: In member function 'arma::mat momentum_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&)': sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ In file included from sgd.cpp:14: sgd/nesterov_sgd.h: In member function 'arma::mat nesterov_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&)': sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ In file included from sgd.cpp:15: validity-check/validity_check.h: In function 'bool validity_check(const data_set&, const arma::mat&, bool, unsigned int, const MODEL&)': validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h: In instantiation of 'arma::mat explicit_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = cox_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = cox_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:57:17: required from here 57 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h: In instantiation of 'bool validity_check(const data_set&, const arma::mat&, bool, unsigned int, const MODEL&) [with MODEL = cox_model; arma::mat = arma::Mat<double>]': sgd.cpp:207:35: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = cox_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 207 | good_validity = validity_check(data, theta_new, good_gradient, t, model); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:57:17: required from here 57 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h: In instantiation of 'arma::mat momentum_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = cox_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = cox_model; SGD = momentum_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:63:17: required from here 63 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h: In instantiation of 'arma::mat nesterov_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = cox_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = cox_model; SGD = nesterov_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:66:17: required from here 66 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h: In instantiation of 'arma::mat explicit_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = glm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = glm_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:77:17: required from here 77 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h: In instantiation of 'bool validity_check(const data_set&, const arma::mat&, bool, unsigned int, const MODEL&) [with MODEL = glm_model; arma::mat = arma::Mat<double>]': sgd.cpp:207:35: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = glm_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 207 | good_validity = validity_check(data, theta_new, good_gradient, t, model); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:77:17: required from here 77 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h: In instantiation of 'arma::mat momentum_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = glm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = glm_model; SGD = momentum_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:83:17: required from here 83 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h: In instantiation of 'arma::mat nesterov_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = glm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = glm_model; SGD = nesterov_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:86:17: required from here 86 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h: In instantiation of 'arma::mat explicit_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = gmm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = gmm_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:97:17: required from here 97 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h: In instantiation of 'bool validity_check(const data_set&, const arma::mat&, bool, unsigned int, const MODEL&) [with MODEL = gmm_model; arma::mat = arma::Mat<double>]': sgd.cpp:207:35: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = gmm_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 207 | good_validity = validity_check(data, theta_new, good_gradient, t, model); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:97:17: required from here 97 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h: In instantiation of 'arma::mat momentum_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = gmm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = gmm_model; SGD = momentum_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:103:17: required from here 103 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h: In instantiation of 'arma::mat nesterov_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = gmm_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = gmm_model; SGD = nesterov_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:106:17: required from here 106 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h: In instantiation of 'arma::mat explicit_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = m_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = m_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:117:17: required from here 117 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/explicit_sgd.h:25:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 25 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h: In instantiation of 'bool validity_check(const data_set&, const arma::mat&, bool, unsigned int, const MODEL&) [with MODEL = m_model; arma::mat = arma::Mat<double>]': sgd.cpp:207:35: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = m_model; SGD = explicit_sgd; Rcpp::List = Rcpp::Vector<19>]' 207 | good_validity = validity_check(data, theta_new, good_gradient, t, model); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:117:17: required from here 117 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ validity-check/validity_check.h:21:17: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 21 | if (!is_finite(theta)) { | ~~~~~~~~~^~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h: In instantiation of 'arma::mat momentum_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = m_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = m_model; SGD = momentum_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:123:17: required from here 123 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/momentum_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h: In instantiation of 'arma::mat nesterov_sgd::update(unsigned int, const arma::mat&, const data_set&, MODEL&, bool&) [with MODEL = m_model; arma::mat = arma::Mat<double>]': sgd.cpp:193:27: required from 'Rcpp::List run(const data_set&, MODEL&, SGD&) [with MODEL = m_model; SGD = nesterov_sgd; Rcpp::List = Rcpp::Vector<19>]' 193 | theta_new = sgd.update(t, theta_old, data, model, good_gradient); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sgd.cpp:126:17: required from here 126 | return run(data, model, sgd); | ~~~^~~~~~~~~~~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ sgd/nesterov_sgd.h:27:19: warning: 'bool arma::is_finite(const Base<typename T1::elem_type, T1>&) [with T1 = Mat<double>; typename T1::elem_type = double]' is deprecated: change arma::is_finite(X) to X.is_finite() [-Wdeprecated-declarations] 27 | if (!is_finite(grad_t)) { | ~~~~~~~~~^~~~~~~~ D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:181:1: note: declared here 181 | is_finite(const Base<typename T1::elem_type,T1>& X) | ^~~~~~~~~ g++ -std=gnu++17 -shared -s -static-libgcc -o sgd.dll tmp.def RcppExports.o sgd.o -LD:/RCompile/recent/R-4.5.1/bin/x64 -lRlapack -LD:/RCompile/recent/R-4.5.1/bin/x64 -lRblas -lgfortran -lquadmath -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.5.1/bin/x64 -lR make[1]: Leaving directory '/d/temp/2025_09_29_01_50_00_31777/Rtmp6h6FmS/R.INSTALL1cc1ce48135b/sgd/src' make[1]: Entering directory '/d/temp/2025_09_29_01_50_00_31777/Rtmp6h6FmS/R.INSTALL1cc1ce48135b/sgd/src' make[1]: Leaving directory '/d/temp/2025_09_29_01_50_00_31777/Rtmp6h6FmS/R.INSTALL1cc1ce48135b/sgd/src' installing to d:/Rcompile/CRANpkg/lib/4.5/00LOCK-sgd/00new/sgd/libs/x64 ** R ** data *** moving datasets to lazyload DB ** demo ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * MD5 sums packaged installation of 'sgd' as sgd_1.1.2.zip * DONE (sgd)