* installing to library ‘/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages’ * installing *source* package ‘L0Learn’ ... ** package ‘L0Learn’ successfully unpacked and MD5 sums checked ** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++-14 -std=gnu++17 accepts -g... yes checking how to run the C++ preprocessor... g++-14 -std=gnu++17 -E checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++-14 -std=gnu++17 accepts -g... (cached) yes configure: creating ./config.status config.status: creating src/Makevars ** libs using C++ compiler: ‘g++-14 (Debian 14.2.0-6) 14.2.0’ make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpnxDqnM/R.INSTALL2fab45407d1c9f/L0Learn/src' g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c BetaVector.cpp -o BetaVector.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c CDL012LogisticSwaps.cpp -o CDL012LogisticSwaps.o CDL012LogisticSwaps.cpp: In instantiation of ‘FitResult<T> CDL012LogisticSwaps<T>::_Fit() [with T = arma::Mat<double>]’: CDL012LogisticSwaps.cpp:172:16: required from here 172 | template class CDL012LogisticSwaps<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CDL012LogisticSwaps.cpp:72:40: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare] 72 | for(std::size_t ll = 0; ll < std::min(50, (int) this->p); ++ll) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CDL012LogisticSwaps.cpp: In instantiation of ‘FitResult<T> CDL012LogisticSwaps<T>::_Fit() [with T = arma::SpMat<double>]’: CDL012LogisticSwaps.cpp:173:16: required from here 173 | template class CDL012LogisticSwaps<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CDL012LogisticSwaps.cpp:72:40: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare] 72 | for(std::size_t ll = 0; ll < std::min(50, (int) this->p); ++ll) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c CDL012SquaredHingeSwaps.cpp -o CDL012SquaredHingeSwaps.o In file included from include/CDL012SquaredHingeSwaps.h:6, from CDL012SquaredHingeSwaps.cpp:1: include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ CDL012SquaredHingeSwaps.cpp: In member function ‘FitResult<T> CDL012SquaredHingeSwaps<T>::_Fit() [with T = arma::Mat<double>]’: CDL012SquaredHingeSwaps.cpp:28:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized] 28 | std::size_t maxindex; | ^~~~~~~~ CDL012SquaredHingeSwaps.cpp:105:35: warning: ‘Bmaxindex’ may be used uninitialized [-Wmaybe-uninitialized] 105 | this->B[maxindex] = Bmaxindex; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ CDL012SquaredHingeSwaps.cpp:29:12: note: ‘Bmaxindex’ was declared here 29 | double Bmaxindex; | ^~~~~~~~~ CDL012SquaredHingeSwaps.cpp: In member function ‘FitResult<T> CDL012SquaredHingeSwaps<T>::_Fit() [with T = arma::SpMat<double>]’: CDL012SquaredHingeSwaps.cpp:28:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized] 28 | std::size_t maxindex; | ^~~~~~~~ CDL012SquaredHingeSwaps.cpp:105:35: warning: ‘Bmaxindex’ may be used uninitialized [-Wmaybe-uninitialized] 105 | this->B[maxindex] = Bmaxindex; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ CDL012SquaredHingeSwaps.cpp:29:12: note: ‘Bmaxindex’ was declared here 29 | double Bmaxindex; | ^~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c CDL012Swaps.cpp -o CDL012Swaps.o CDL012Swaps.cpp: In instantiation of ‘FitResult<T> CDL012Swaps<T>::_Fit() [with T = arma::Mat<double>]’: CDL012Swaps.cpp:97:16: required from here 97 | template class CDL012Swaps<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~ CDL012Swaps.cpp:17:12: warning: variable ‘objective’ set but not used [-Wunused-but-set-variable] 17 | double objective = result.Objective; | ^~~~~~~~~ CDL012Swaps.cpp: In instantiation of ‘FitResult<T> CDL012Swaps<T>::_Fit() [with T = arma::SpMat<double>]’: CDL012Swaps.cpp:98:16: required from here 98 | template class CDL012Swaps<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~ CDL012Swaps.cpp:17:12: warning: variable ‘objective’ set but not used [-Wunused-but-set-variable] 17 | double objective = result.Objective; | ^~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Grid.cpp -o Grid.o In file included from include/MakeCD.h:10, from include/Grid1D.h:10, from include/Grid.h:9, from Grid.cpp:1: include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Grid1D.cpp -o Grid1D.o In file included from include/MakeCD.h:10, from include/Grid1D.h:10, from Grid1D.cpp:1: include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ Grid1D.cpp: In instantiation of ‘std::vector<std::unique_ptr<FitResult<T> > > Grid1D<T>::Fit() [with T = arma::Mat<double>]’: Grid1D.cpp:236:16: required from here 236 | template class Grid1D<arma::mat>; | ^~~~~~~~~~~~~~~~~ Grid1D.cpp:194:26: warning: variable ‘samesupp’ set but not used [-Wunused-but-set-variable] 194 | bool samesupp = false; | ^~~~~~~~ Grid1D.cpp: In instantiation of ‘std::vector<std::unique_ptr<FitResult<T> > > Grid1D<T>::Fit() [with T = arma::SpMat<double>]’: Grid1D.cpp:237:16: required from here 237 | template class Grid1D<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~ Grid1D.cpp:194:26: warning: variable ‘samesupp’ set but not used [-Wunused-but-set-variable] 194 | bool samesupp = false; | ^~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Grid2D.cpp -o Grid2D.o In file included from include/MakeCD.h:10, from include/Grid1D.h:10, from include/Grid2D.h:8, from Grid2D.cpp:1: include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ In file included from include/CD.h:9, from include/MakeCD.h:5: include/utils.h: In instantiation of ‘arma::sp_mat matrix_rows_get(const arma::sp_mat&, T1) [with T1 = arma::Col<unsigned int>; arma::sp_mat = arma::SpMat<double>]’: Grid2D.cpp:69:41: required from ‘std::vector<std::vector<std::unique_ptr<FitResult<T> > > > Grid2D<T>::Fit() [with T = arma::SpMat<double>]’ 69 | T indices_rows = matrix_rows_get(*X, indices); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Grid2D.cpp:126:16: required from here 126 | template class Grid2D<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~ include/utils.h:44:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare] 44 | for (auto i = 0; i < vector_of_row_indices.n_elem; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:66, from /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include/RcppCommon.h:61, from /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25, from /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29, from include/Grid2D.h:4: In member function ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = double; _Alloc = std::allocator<double>]’, inlined from ‘std::vector<std::vector<std::unique_ptr<FitResult<T> > > > Grid2D<T>::Fit() [with T = arma::Mat<double>]’ at Grid2D.cpp:110:25: /usr/include/c++/14/bits/stl_vector.h:1131:41: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized] 1131 | return *(this->_M_impl._M_start + __n); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ Grid2D.cpp: In member function ‘std::vector<std::vector<std::unique_ptr<FitResult<T> > > > Grid2D<T>::Fit() [with T = arma::Mat<double>]’: Grid2D.cpp:82:17: note: ‘index’ was declared here 82 | std::size_t index; | ^~~~~ In member function ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = double; _Alloc = std::allocator<double>]’, inlined from ‘std::vector<std::vector<std::unique_ptr<FitResult<T> > > > Grid2D<T>::Fit() [with T = arma::SpMat<double>]’ at Grid2D.cpp:110:25: /usr/include/c++/14/bits/stl_vector.h:1131:41: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized] 1131 | return *(this->_M_impl._M_start + __n); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ Grid2D.cpp: In member function ‘std::vector<std::vector<std::unique_ptr<FitResult<T> > > > Grid2D<T>::Fit() [with T = arma::SpMat<double>]’: Grid2D.cpp:82:17: note: ‘index’ was declared here 82 | std::size_t index; | ^~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Interface.cpp -o Interface.o In file included from include/MakeCD.h:10, from include/Grid1D.h:10, from include/Grid.h:9, from include/Interface.h:7, from Interface.cpp:1: include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::Mat<double>]’: include/CDL012SquaredHinge.h:205:16: required from here 205 | template class CDL012SquaredHinge<arma::mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_FitWithBounds() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:169:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 169 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h: In instantiation of ‘FitResult<T> CDL012SquaredHinge<T>::_Fit() [with T = arma::SpMat<double>]’: include/CDL012SquaredHinge.h:206:16: required from here 206 | template class CDL012SquaredHinge<arma::sp_mat>; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/CDL012SquaredHinge.h:123:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 123 | for (auto t = 0; t < this->MaxIters; ++t) { | ~~^~~~~~~~~~~~~~~~ In file included from include/CD.h:9, from include/MakeCD.h:5: include/utils.h: In instantiation of ‘arma::sp_mat matrix_rows_get(const arma::sp_mat&, T1) [with T1 = arma::Col<unsigned int>; arma::sp_mat = arma::SpMat<double>]’: Interface.cpp:225:34: required from ‘Rcpp::List _L0LearnCV(const T&, const arma::vec&, std::string, std::string, std::string, unsigned int, unsigned int, unsigned int, double, double, bool, unsigned int, double, double, bool, unsigned int, unsigned int, double, unsigned int, bool, std::vector<std::vector<double> >, unsigned int, double, unsigned int, bool, bool, const arma::vec&, const arma::vec&) [with T = arma::SpMat<double>; Rcpp::List = Rcpp::Vector<19>; arma::vec = arma::Col<double>; std::string = std::__cxx11::basic_string<char>]’ 225 | T Xtraining = matrix_rows_get(X, trainingindicesarma); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ Interface.cpp:337:22: required from here 337 | return _L0LearnCV(X, y, Loss, Penalty, | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 338 | Algorithm, NnzStopNum, G_ncols, G_nrows, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 339 | Lambda2Max, Lambda2Min, PartialSort, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 340 | MaxIters, rtol,atol, ActiveSet, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 341 | ActiveSetNum, MaxNumSwaps, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 342 | ScaleDownFactor, ScreenSize, LambdaU, Lambdas, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 343 | nfolds, seed, ExcludeFirstK, Intercept, withBounds, Lows, Highs); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/utils.h:44:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare] 44 | for (auto i = 0; i < vector_of_row_indices.n_elem; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Normalize.cpp -o Normalize.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c RcppExports.cpp -o RcppExports.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c Test_Interface.cpp -o Test_Interface.o In file included from include/Test_Interface.h:5, from Test_Interface.cpp:1: include/utils.h: In instantiation of ‘arma::sp_mat matrix_rows_get(const arma::sp_mat&, T1) [with T1 = arma::Col<unsigned int>; arma::sp_mat = arma::SpMat<double>]’: Test_Interface.cpp:22:27: required from here 22 | return matrix_rows_get(mat, rows); | ~~~~~~~~~~~~~~~^~~~~~~~~~~ include/utils.h:44:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare] 44 | for (auto i = 0; i < vector_of_row_indices.n_elem; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c profile.cpp -o profile.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 "-Iinclude" -fpic -g -O2 -Wall -pedantic -mtune=native -c utils.cpp -o utils.o utils.cpp: In function ‘arma::rowvec matrix_normalize(arma::sp_mat&)’: utils.cpp:36:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 36 | for (auto col = 0; col < p; col++){ | ~~~~^~~ utils.cpp:43:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 43 | for (auto col = 0; col < p; col++){ | ~~~~^~~ utils.cpp: In function ‘arma::rowvec matrix_normalize(arma::mat&)’: utils.cpp:61:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 61 | for (auto col = 0; col < p; col++) { | ~~~~^~~ g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -Wl,-O1 -o L0Learn.so BetaVector.o CDL012LogisticSwaps.o CDL012SquaredHingeSwaps.o CDL012Swaps.o Grid.o Grid1D.o Grid2D.o Interface.o Normalize.o RcppExports.o Test_Interface.o profile.o utils.o -llapack -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lRblas -lgfortran -lm -lquadmath -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lR make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpnxDqnM/R.INSTALL2fab45407d1c9f/L0Learn/src' make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpnxDqnM/R.INSTALL2fab45407d1c9f/L0Learn/src' make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpnxDqnM/R.INSTALL2fab45407d1c9f/L0Learn/src' installing to /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/00LOCK-L0Learn/00new/L0Learn/libs ** R ** 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 ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (L0Learn)