* installing *source* package ‘rcppmlpackexamples’ ... ** this is package ‘rcppmlpackexamples’ version ‘0.0.1’ ** package ‘rcppmlpackexamples’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.1.1.101)’ using SDK: ‘MacOSX26.5.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEnsmallen/include' -I'/Users/ripley/R/Library/mlpack/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:98: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:35:21: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 35 | width(100.0 / widthIn), | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:46: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:146:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 146 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:163:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 162 | output << "] " << progress << "% - ETA: " << (size_t) (stepTimer.toc() * | ~ 163 | (epochSize - step + 1)) % 60 << "s - loss: " << | ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:63: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:52: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:209:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 209 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:225:68: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:100: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:46: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:39: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~^~~~~~ ~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:11: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp:156: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:206:30: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2, arma::op_max>>::value && resolves_to_vector, arma::op_max>>::yes, typename Op, arma::op_max>::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 206 | vertices = max(max(edges)) + 1; | ~ ~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:248:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | arma::vec edge = edges.col(i - 1); | ~~~ ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 287 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 288 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 287 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 304 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 305 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:340:13: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 340 | float m = NumConstraints(); | ~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:341:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 341 | float r = 0.5 + std::sqrt(0.25 + 2 * m); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:342:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 342 | if (ceil(r) > vertices) | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:343:9: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 343 | r = vertices; // An upper bound on the dimension. | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:349:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 349 | for (size_t i = 0; i < r; i++) | ^ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:355:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 355 | std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:22: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp:144: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:28:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:33:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | initialPoint(i) = -1.2; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:37:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | initialPoint(i) = 1; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:45:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | visitationOrder = arma::shuffle(arma::linspace>(0, n - 2, | ~~~~ 45 | n - 1)); | ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:59:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:97:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:32: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function.hpp:138: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 24 | visitationOrder(linspace>(0, n - 1, n)) | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:32:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | visitationOrder = shuffle(linspace>(0, n - 1, n)); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:48:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:38: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function.hpp:140: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:33:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:45:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:70:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:39: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function.hpp:74: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:24:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace>(0, NumFunctions() - 1, | ~~~~ 24 | NumFunctions())) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:30:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | visitationOrder = arma::shuffle(arma::linspace >(0, | ~~~~ 30 | (NumFunctions() - 1), NumFunctions())); | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:45:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:77:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:42: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function.hpp:139: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:25:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint(i) = 5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:32:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | initialPoint(i) = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:39:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:53:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:126:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 126 | double GetFinalObjective() const { return -39.16599 * n; } | ~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:143: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:30:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint[i] = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:36:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 36 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:50:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:78:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:62: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/maf/maf5_function.hpp:76:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | a(a), | ~^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:124:16: warning: unused variable 'result' [-Wunused-variable] 124 | const bool result = Optimize(function, coordinates, this->deprecatedLambda, | ^~~~~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:116: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ^~~~~~~~~~~~ ~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:169:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 169 | (batchSize * gradientNorm)) / v; | ^~~~~~~~~ ~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:119: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes.hpp:179: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 114 | currentLargeLambda / defaultLambda, u * u)); | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ~ 114 | currentLargeLambda / defaultLambda, u * u)); | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:113:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ^~~~~~~~~~~~~ ~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:121: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne.hpp:208: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:36: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:186:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 186 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:189:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 189 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:122: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de.hpp:148: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:105:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 105 | l = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | m = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_classic.hpp:52:48: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | typename MatType::elem_type gamma = 2.0 / (numIter + 2.0); | ^~~~~~~ ~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:130: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search.hpp:71: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search_impl.hpp:77:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | for (size_t j = 0; j < numCategories(i); ++j) | ~~~~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:135: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea.hpp:485: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:308:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 308 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:310:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 310 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:570:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | indexes = arma::linspace>(0, front.size() - 1, front.size()); | ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:749:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:760:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 760 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:136: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead.hpp:357: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead_impl.hpp:300:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 300 | const size_t idx = idxShuffle(i); | ~~~~~~~~~~ ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:137: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2.hpp:382: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:302:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 302 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:304:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 304 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:139: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp:16: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ^~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:153: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:76:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | er *= multFactor; | ~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:35: warning: implicit conversion turns floating-point number into integer: '__promote_t' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 83 | snapshotEpochs - snapshots + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to '__promote_t' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ^~~~~~~~~~~~ ~ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:157: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa.hpp:137: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa_impl.hpp:34:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 34 | ak(0.001 * maxIterations), | ~ ^~~~~~~~~~~~~ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:27: note: in instantiation of function template specialization 'arma::linspace>' requested here 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:21: note: in instantiation of function template specialization 'arma::linspace>' requested here 24 | visitationOrder(linspace>(0, n - 1, n)) | ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:59: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:183:17: note: in instantiation of function template specialization 'ens::Proximal::ProjectToL1Ball>' requested here 183 | Proximal::ProjectToL1Ball(currentCoeffs, tau); | ^ In file included from RcppExports.cpp:6: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/RcppEnsmallen.h:25: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:50: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~~~~~~~~~~ ^~~ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:36: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:613:94: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 613 | ArmaVec_InputParameter( SEXP x_ ) : v(x_), vec( reinterpret_cast( v.begin() ), v.size(), false ){} | ~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:651:5: note: in instantiation of member function 'Rcpp::ArmaVec_InputParameter, const arma::Row &>::ArmaVec_InputParameter' requested here 651 | MAKE_INPUT_PARAMETER(ConstReferenceInputParameter, arma::Row, const arma::Row& ) | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:644:27: note: expanded from macro 'MAKE_INPUT_PARAMETER' 644 | INPUT_TYPE( SEXP x) : ArmaVec_InputParameter(x){} \ | ^ RcppExports.cpp:35:64: note: in instantiation of member function 'Rcpp::ConstReferenceInputParameter>::ConstReferenceInputParameter' requested here 35 | Rcpp::traits::input_parameter< const arma::rowvec& >::type vecY(vecYSEXP); | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:36: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:613:94: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 613 | ArmaVec_InputParameter( SEXP x_ ) : v(x_), vec( reinterpret_cast( v.begin() ), v.size(), false ){} | ~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:648:5: note: in instantiation of member function 'Rcpp::ArmaVec_InputParameter, arma::Col &>::ArmaVec_InputParameter' requested here 648 | MAKE_INPUT_PARAMETER(ReferenceInputParameter , arma::Col, arma::Col& ) | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:644:27: note: expanded from macro 'MAKE_INPUT_PARAMETER' 644 | INPUT_TYPE( SEXP x) : ArmaVec_InputParameter(x){} \ | ^ RcppExports.cpp:49:55: note: in instantiation of member function 'Rcpp::ReferenceInputParameter>::ReferenceInputParameter' requested here 49 | Rcpp::traits::input_parameter< arma::vec& >::type loanDataTargets(loanDataTargetsSEXP); | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:36: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:613:94: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 613 | ArmaVec_InputParameter( SEXP x_ ) : v(x_), vec( reinterpret_cast( v.begin() ), v.size(), false ){} | ~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:649:5: note: in instantiation of member function 'Rcpp::ArmaVec_InputParameter, const arma::Col>::ArmaVec_InputParameter' requested here 649 | MAKE_INPUT_PARAMETER(ConstInputParameter , arma::Col, const arma::Col ) | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:644:27: note: expanded from macro 'MAKE_INPUT_PARAMETER' 644 | INPUT_TYPE( SEXP x) : ArmaVec_InputParameter(x){} \ | ^ RcppExports.cpp:62:60: note: in instantiation of member function 'Rcpp::ConstInputParameter>::ConstInputParameter' requested here 62 | Rcpp::traits::input_parameter< const arma::vec >::type labels(labelsSEXP); | ^ 155 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEnsmallen/include' -I'/Users/ripley/R/Library/mlpack/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c kMeans.cpp -o kMeans.o In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/prereqs.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/cereal/archives/json.hpp:68: /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:75:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 75 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:76:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 76 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:103:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 103 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:104:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:105:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 105 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:120:50: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 120 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:121:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 121 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:122:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 122 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:948:49: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 948 | s = g_deq_L12[ba*3 - 6 + b % 3]*(int)(1 << 21 >> b/3); | ~^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1218:40: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1218 | y *= g_expfrac[e & 3]*(1 << 30 >> (e >> 2)); | ~ ~~~~~~~~^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1311:50: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1311 | frac = (float)((x & 63) - sign) / ((x & ~63) + sign); | ~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1312:88: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1312 | return g_drmp3_pow43[16 + ((x + sign) >> 6)]*(1.f + frac*((4.f/3) + frac*(2.f/9)))*mult; | ~^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4579:65: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4579 | pcmFrameCountOutF = *pRunningPCMFrameCountFractionalPart + (pcmFrameCountIn / srcRatio); | ^~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4581:64: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4581 | *pRunningPCMFrameCountFractionalPart = pcmFrameCountOutF - pcmFrameCountOut; | ~ ^~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1739:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1739 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1744:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1744 | return ((drwav_uint16)data[1] << 0) | ((drwav_uint16)data[0] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:2189:78: warning: implicit conversion loses integer precision: 'drwav_uint64' (aka 'unsigned long long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 2189 | calculatedLoopCount = (pChunkHeader->sizeInBytes - DRWAV_SMPL_BYTES) / DRWAV_SMPL_LOOP_BYTES; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4679:104: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 4679 | drwav_uint64 targetDataSizeBytes = (drwav_uint64)((drwav_int64)totalFrameCount * pFormat->channels * pFormat->bitsPerSample/8.0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7163:27: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 7163 | *pOut++ = (float)((drwav_int64)sample / 9223372036854775807.0); | ^~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8483:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 8483 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4834:40: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4834 | *dest16 = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4839:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4839 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4845:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4845 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4846:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4846 | dest16[1] = (cur[2] << 8) | cur[3]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4847:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4847 | dest16[2] = (cur[4] << 8) | cur[5]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1325:18: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 1325 | bits[0] = val & ((1<(imageBuf, dimension, 1, | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_image.hpp:86:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | images.col(i) = arma::Mat(imageBuf, dimension, 1, | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load.hpp:30: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:443:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 443 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:513:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 513 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:481:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 481 | arma::fmat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:496:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | arma::Mat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), 75 | opts.Width() * opts.Channels()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:26: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:393:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 393 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:323:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 323 | dataFormat.channels = opts.Channels(); | ~ ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:324:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 324 | dataFormat.sampleRate = opts.SampleRate(); | ~ ~~~~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:325:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 325 | dataFormat.bitsPerSample = opts.BitsPerSample(); | ~ ~~~~~^~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:36: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:69: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:223:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 223 | int midWidth = static_cast(largestRatio * opts.Width()); | ~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:224:56: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 224 | int midHeight = static_cast(largestRatio * opts.Height()); | ~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:247:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 247 | int cropUpDownEqually = (nRowsCrop / 2) * opts.Channels() * midWidth; | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:7: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:37: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:42: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels.hpp:52: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels_impl.hpp:55:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | labels[i] = curLabel; | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding.hpp:67: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:53:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels[i] = curLabel; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:22: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:131:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | const size_t dimOffset = (row == 0) ? 0 : dimensionOffsets[row - 1]; | ~~~~~~~~~~~~~~~~ ~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:212:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 212 | testSize += floor(labelCount * testRatio); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:213:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 213 | trainSize += labelCount - floor(labelCount * testRatio); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks.hpp:226: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:29:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | rDiag(i) = -1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:31:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | rDiag(i) = 1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:33:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | rDiag(i) = 0; | ~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:39:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 39 | std::pow(M_PI, dimension / 2.0) / | ^~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel.hpp:116: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp:71:20: warning: implicit conversion loses integer precision: 'int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 71 | sub[j] = tolower(sub[j]); | ~ ^~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:27: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree.hpp:300: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree_impl.hpp:489:8: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 489 | if (!sigma) | ~^~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split.hpp:85: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:183:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 183 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:184:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 184 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:218:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 218 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:219:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 219 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:314:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 314 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:323:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 323 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:461:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 461 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:470:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 470 | bestIndex = index; | ~ ^~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp:59: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:51:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:56:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:98:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 98 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:103:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 103 | bestIndex = i; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split.hpp:75: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:252:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 252 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:262:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 262 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:263:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 263 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:273:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 273 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:290:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 290 | bestIndexMinOverlapSplit = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:358:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 358 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:369:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 369 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:370:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 370 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:380:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 380 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:398:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 398 | bestIndexMinOverlapSplit = i; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/is_spill_tree.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/spill_tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split_impl.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | snd = points[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:93:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | snd = points[i]; | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:64: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe.hpp:201: /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:93:16: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 93 | highFreq = sampleRate / 2.0f; | ^~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:95:63: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 95 | size_t lengthInSamples = static_cast(windowLength * sampleRate | ~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:97:60: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 97 | size_t stepsInSamples = static_cast(windowStep * sampleRate | ~ ^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1.hpp:106: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:43:35: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 43 | double precision = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:44:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 44 | double recall = double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:85:37: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | double precision = double(tp) / positivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:86:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 86 | double recall = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:78:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | arma::vec f1s = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:87:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | f1s(c) = (precision + recall == 0.0) ? 0.0 : | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:72:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec precisions = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score.hpp:77: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score_impl.hpp:41:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 41 | return totalSumSquared ? 1.0 : DBL_MIN; | ^~~~~~~~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:31: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | recalls(c) = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:72:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec recalls = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | recalls(c) = double(tp) / positiveLabels; | ~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score.hpp:56: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:74:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 74 | tpr /= numberOfTrueLabels; | ~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:75:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 75 | fpr /= numberOfFalseLabels; | ~~ ^~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score.hpp:104: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:45:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | size_t clusterLabel = labels(clusterLabels(j)); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (labels(i) != clusterLabel) { | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:63:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | sampleScores(i) = 0.0; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:65:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | sampleScores(i) = minInterClusterDistance - intraClusterDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:66:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | sampleScores(i) /= std::max( | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:102:33: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 102 | distance /= (numSameCluster - sameCluster); | ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv.hpp:321: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:259:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 259 | << "a score of " << evaluations(i) << "; ignoring when computing " | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:98: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:35:21: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 35 | width(100.0 / widthIn), | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:46: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:146:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 146 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:163:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 162 | output << "] " << progress << "% - ETA: " << (size_t) (stepTimer.toc() * | ~ 163 | (epochSize - step + 1)) % 60 << "s - loss: " << | ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:63: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:52: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:209:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 209 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:225:68: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:100: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:46: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:39: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~^~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:11: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp:156: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:206:30: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2, arma::op_max>>::value && resolves_to_vector, arma::op_max>>::yes, typename Op, arma::op_max>::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 206 | vertices = max(max(edges)) + 1; | ~ ~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:248:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | arma::vec edge = edges.col(i - 1); | ~~~ ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 287 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 288 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 287 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 304 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 305 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:340:13: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 340 | float m = NumConstraints(); | ~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:341:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 341 | float r = 0.5 + std::sqrt(0.25 + 2 * m); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:342:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 342 | if (ceil(r) > vertices) | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:343:9: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 343 | r = vertices; // An upper bound on the dimension. | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:349:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 349 | for (size_t i = 0; i < r; i++) | ^ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:355:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 355 | std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:22: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp:144: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:28:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:33:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | initialPoint(i) = -1.2; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:37:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | initialPoint(i) = 1; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:45:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | visitationOrder = arma::shuffle(arma::linspace>(0, n - 2, | ~~~~ 45 | n - 1)); | ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:59:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:97:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:32: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function.hpp:138: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 24 | visitationOrder(linspace>(0, n - 1, n)) | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:32:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | visitationOrder = shuffle(linspace>(0, n - 1, n)); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:48:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:38: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function.hpp:140: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:33:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:45:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:70:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:39: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function.hpp:74: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:24:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace>(0, NumFunctions() - 1, | ~~~~ 24 | NumFunctions())) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:30:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | visitationOrder = arma::shuffle(arma::linspace >(0, | ~~~~ 30 | (NumFunctions() - 1), NumFunctions())); | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:45:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:77:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:42: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function.hpp:139: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:25:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint(i) = 5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:32:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | initialPoint(i) = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:39:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:53:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:126:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 126 | double GetFinalObjective() const { return -39.16599 * n; } | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:143: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:30:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint[i] = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:36:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 36 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:50:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:78:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:62: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/maf/maf5_function.hpp:76:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | a(a), | ~^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:124:16: warning: unused variable 'result' [-Wunused-variable] 124 | const bool result = Optimize(function, coordinates, this->deprecatedLambda, | ^~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:116: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ^~~~~~~~~~~~ ~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:169:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 169 | (batchSize * gradientNorm)) / v; | ^~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:119: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes.hpp:179: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 114 | currentLargeLambda / defaultLambda, u * u)); | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ~ 114 | currentLargeLambda / defaultLambda, u * u)); | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:113:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ^~~~~~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:121: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne.hpp:208: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:36: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:186:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 186 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:189:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 189 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:122: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de.hpp:148: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:105:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 105 | l = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | m = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_classic.hpp:52:48: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | typename MatType::elem_type gamma = 2.0 / (numIter + 2.0); | ^~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:130: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search.hpp:71: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search_impl.hpp:77:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | for (size_t j = 0; j < numCategories(i); ++j) | ~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:135: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea.hpp:485: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:308:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 308 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:310:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 310 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:570:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | indexes = arma::linspace>(0, front.size() - 1, front.size()); | ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:749:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:760:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 760 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:136: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead.hpp:357: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead_impl.hpp:300:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 300 | const size_t idx = idxShuffle(i); | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:137: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2.hpp:382: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:302:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 302 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:304:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 304 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:139: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp:16: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ^~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:153: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:76:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | er *= multFactor; | ~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:35: warning: implicit conversion turns floating-point number into integer: '__promote_t' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 83 | snapshotEpochs - snapshots + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to '__promote_t' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ^~~~~~~~~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:157: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa.hpp:137: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa_impl.hpp:34:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 34 | ak(0.001 * maxIterations), | ~ ^~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:351: /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:96:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | arma::Row numCategories(datasetInfo.Dimensionality()); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:99:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | numCategories[d] = datasetInfo.NumMappings(d); | ~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron.hpp:246: /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:251:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | if (maxIndexRow != labels(0, j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:255:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | tempLabel = labels(0, j); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:72:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:107:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:115:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:116:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:127:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:128:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:129:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:145:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 145 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:165:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:169:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:170:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:174:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:175:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:183:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:41:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:203:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 203 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:132:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 132 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:138:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:158:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:81:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | totalLeftWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:88:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | totalRightWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:113:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | totalLeftWeight += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:114:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | totalRightWeight -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp:160: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:65:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | leftWeights.set_size(leftLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:213:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 213 | rightWeights.set_size(rightLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:49:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | arma::umat categoryCounts(numCategories, 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:50:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | arma::vec categoryP(numCategories); | ~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:62:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:91:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:92:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:93:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:95:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 95 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:94:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:96:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:111:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | arma::uvec categories(numCategories); | ~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:116:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::mat classWeightSums = arma::zeros(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:130:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | = arma::zeros>(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:173:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | arma::vec categoryResponse(numCategories); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:174:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | arma::uvec categoryCounts(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:188:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:217:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 217 | splitInfo.set_size(numCategories + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:218:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 218 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:219:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:221:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 221 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:220:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:222:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 222 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:267:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 267 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:275:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 275 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:280:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:294:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 294 | categories[k] = 1; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:359:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 359 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:367:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:372:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:386:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 386 | categories[k] = 1; | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:45:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | values.set_size(numDimensions + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:55:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | value = RandInt(dimensions); | ~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:61:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (values[j] == value) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:69:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | values[i] = value; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:72:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | values[numDimensions] = std::numeric_limits::max(); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:88:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | return values[++i]; | ~~~~~~ ^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/random_dimension_select.hpp:32:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 32 | size_t Begin() const { return RandInt(dimensions); } | ~~~~~~~ ^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1053:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1053 | arma::vec v = probabilities.unsafe_col(i); // Alias of column. | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:609: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor.hpp:527: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:688:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 688 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:705:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 705 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:722:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 722 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:749:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:850:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 850 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:859:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 859 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:876:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 876 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:903:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:301: /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:435:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 435 | if (k == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:450:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 450 | if (k == labels(j)) | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add.hpp:94: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 52 | sizeA = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:53:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 53 | sizeB = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:37:63: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | arma::field vecInput = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:38:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | arma::field vecLabels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:44:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | arma::vec weights(bitLen - 1); | ~~~~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:58:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~ 58 | sizeA + sizeB + 1, DistrParam(0, 1)); | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:57:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:122:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | input.set_size(fieldInput(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:123:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | labels.set_size(fieldLabels(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:32: warning: implicit conversion turns floating-point number into integer: 'const double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 140 | size_t val = input.at(i).at(j); | ~~~ ~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:138:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | for (size_t j = 0; j < input.at(i).n_elem; ++j) | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy.hpp:96: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:67:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | size = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:52:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:53:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:59:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | arma::vec weights(maxLength - 1); | ~~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:70:7: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | arma::colvec vecInput = randi( | ~~~~~ 70 | size, DistrParam(0, 1)); | ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:72:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | repmat(vecInput, nRepeats, 1)); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:75:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | input(i).col(0).rows(0, vecInput.n_elem - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:78:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | input(i).at(vecInput.n_elem, 0) = 0.5; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:80:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | ones(totSize - vecInput.n_elem - addSeparator); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:96:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | input = zeros(fieldInput(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:97:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | labels = zeros(fieldLabels(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score_impl.hpp:47:12: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 47 | score /= testSize; | ~~ ^~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 69 | val += input(i).at(k, j); | ~~~~^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:50:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:51:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:58:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 58 | size = RandInt(2, maxLength+1); | ~~~~~~~ ~~~~~~~~~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:62:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::colvec vals(size); | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:71:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | vals[j] = val; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:78:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | labels(i) = itemAns; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:90:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | sepInput.at(ptr, 0) = 0.5; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:93:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | input(i) = sepInput; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:38: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/nguyen_widrow_init.hpp:80:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 80 | double beta = 0.7 * std::pow(cols, 1.0 / rows); | ~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:34: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/models.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny.hpp:274: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny_impl.hpp:210:16: warning: unused variable 'numClasses' [-Wunused-variable] 210 | const size_t numClasses = classNames.size(); | ^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn.hpp:114: /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:135:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 135 | const size_t tableIndex = tableLocations[p.second]; | ~~~~~~~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:148:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 148 | tableLocations[p.second]++; | ~~~~~~~~~~~~~~ ~~^~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:229:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:270:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 270 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap.hpp:65: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:23: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:943:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 943 | effectiveError /= numCases; | ~~ ^~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t itemNum = max(data.row(1)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | itemMean(item) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(item) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | itemMean = arma::vec(itemNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(itemNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t item = combinations(1, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t userNum = max(data.row(0)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | userMean(user) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(user) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | userMean = arma::vec(userNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(userNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t user = combinations(0, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:106:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:56: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:103:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:112:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:199:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:201:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:200:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 200 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:208:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | ratingError * parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:210:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | ratingError * parameters.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:231:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 231 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:298:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:297:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 297 | double ratingError = rating - dot(iterate.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:303:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 303 | ratingError * iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:302:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 302 | arma::mat userUpdate = stepSize * (lambda * iterate.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:305:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | ratingError * iterate.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:304:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | arma::mat itemUpdate = stepSize * (lambda * iterate.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:99:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:109:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:108:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:381:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 381 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:340:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:346:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:347:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:348:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 348 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:375:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 375 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:376:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 376 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:518:42: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 518 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:406:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 405 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 406 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:482:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 482 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:483:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 483 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:484:68: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 484 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:511:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 511 | arma::Col implicitItems(implicitCount); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:512:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 512 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:513:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 513 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:517:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 517 | itemImplicitUpdate.col(implicitIndex) = | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:522:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 522 | implicitItems(implicitIndex) = it.row(); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:110:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:128:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:129:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:138:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:140:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | rating = w * userVec + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:23: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/interpolation_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:54: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:116:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::vec constant(neighborNum); | ~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:118:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | arma::vec userRating(cleanedData.col(queryUser)); | ~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:29: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:15: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:41: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:25: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:168:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | if (constant(i) == 0) | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:169:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | constant(i) = std::numeric_limits::min(); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:11: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:198:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 198 | recommendations.set_size(numRecs, users.n_elem); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:199:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | arma::mat values(numRecs, users.n_elem); | ~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:223:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 223 | ratings += weights(j) * neighborRatings; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:266:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 266 | << "for user " << users(i) << " (not enough un-rated items)!" | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:379:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 379 | predictions(ordering[i]) = rating; | ~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:53: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:41:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | parent[i] = i; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:42:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | rank[i] = 0; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:57:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | if (parent[x] == x) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:65:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | return parent[x]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:91:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | parent[yRoot] = xRoot; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:95:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | parent[xRoot] = yRoot; | ~~~~~~ ^~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/random_point_selection.hpp:42:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 42 | const size_t index = RandInt(max); | ~~~~~~~ ^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree.hpp:361: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils.hpp:147: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:31:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | arma::Mat table(numLeaves, (numClasses + 1)); | ~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:38:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | const size_t label = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:78:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | if (imps[i] > max) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:79:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | max = imps[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:124:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:179:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 179 | arma::vec regularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:215:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | cvOldFromNew[i] = i; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:224:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 224 | arma::vec cvRegularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:273:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 273 | - (long double) regularizationConstants[i]; | ~~~~~~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:290:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 290 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (ratios[i] > 1.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:50:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (ratios[i] < 0.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:87:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | distribution[p] = minDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:88:40: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 88 | ((clusterCounts[maxVarCluster] + 1) * variances[maxVarCluster] - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:87:39: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | variances[maxVarCluster] = (1.0 / clusterCounts[maxVarCluster]) * | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:50:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (assignments[i] == maxVarCluster) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:69:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | clusterCounts[emptyCluster]++; | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:71:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | assignments[furthestPoint] = emptyCluster; | ~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:74:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | variances[emptyCluster] = 0; | ~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:23: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 155 | variances[i] /= clusterCounts[i]; | ~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | if (clusterCounts[i] <= 1) | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:153:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | variances[i] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:60:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | newCentroids.shed_col(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:61:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | clusterCounts.shed_row(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | newCentroids.col(i) /= counts(i); | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:29: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans.hpp:173: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp:179:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 179 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans.hpp:66: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans_impl.hpp:165:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 165 | newCentroids.col(c) /= counts[c]; | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:31: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans.hpp:64: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp:141:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 141 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp:70:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:31: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 194 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:29: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 298 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:217: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:106:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:327: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:36:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 36 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:33:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:67:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:87:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:141:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:171:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:185:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:211:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | double newProb = LogProbability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:215:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:235:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 235 | arma::mat logLikelihoods(gaussians, data.n_cols); | ~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:246:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | loglikelihood += AccuLog(logLikelihoods.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:295:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 295 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:380:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:330: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm.hpp:326: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:66:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:120:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 120 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:117:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:150:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:170:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:219:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:246:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:255:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:276:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 276 | double newProb = Probability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:280:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:296:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | arma::mat likelihoods(gaussians, observations.n_cols); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:307:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 307 | if (accu(likelihoods.col(j)) == 0) | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:310:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 310 | logLikelihood += std::log(accu(likelihoods.col(j))); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:367:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:44: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm.hpp:549: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:507:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 507 | stateSeqBack(state, 0) = state; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:546:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long' [-Wfloat-conversion] 545 | stateSeq[dataSeq.n_cols - t] = | ~ 546 | stateSeqBack(stateSeq[dataSeq.n_cols - t + 1], dataSeq.n_cols - t + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 32 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 33 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:46:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:54:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:63:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | impurity -= ((double) splitCounts[i] / (double) numElem) * | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 38 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 39 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:52:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:61:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:71:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | gain += ((double) splitCounts[i] / (double) numElem) * splitGain; | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:573: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1210:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1210 | size_t currentIndex = counts[direction]; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1212:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1212 | counts[direction]++; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1221:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1221 | if (counts[i] == 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1244:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1244 | for (size_t j = 0; j < counts[i]; ++j) | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde.hpp:362: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_impl.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules.hpp:229: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:233:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 233 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:448:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 448 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/naive_method.hpp:83:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 83 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/ordered_selection.hpp:35:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | return arma::linspace >(0, m - 1, m); | ~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:33:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::Col selectedPoints(m); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:35:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | selectedPoints(i) = RandInt(0, data.n_cols); | ~~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:73:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:51: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm.hpp:467: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:315:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 315 | return (double) 100.0 * count / labels.n_elem; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:55: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search.hpp:483: /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:789:24: warning: implicit conversion loses floating-point precision: 'double' to 'const float' [-Wimplicit-float-conversion] 789 | const float cutoff = 0.1; | ~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:828:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 828 | refPointsConsideredSmall.zeros(maxNumPoints); | ~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:56: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion.hpp:146: /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:123:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 123 | if (ceil(r) > mpn) | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:124:9: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 124 | r = mpn; // An upper bound on the dimension. | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:125:10: warning: implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 125 | return ceil(r); | ~~~~~~ ^~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier.hpp:296: /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:103:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:133:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:146:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:334:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:385:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 385 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:475:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 475 | arma::vec probs = probabilities.unsafe_col(i); | ~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:68:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:70:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:73:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:75:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:67:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:69:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:72:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:74:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:188:39: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 188 | else if (state.Row() == fruitTree.Depth()) | ~~ ~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:228:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat branches = zeros(rewardSize, (size_t) std::pow(2, depth - 1)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:241:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | return tree.col(GetIndex(state)); | ~~~ ^~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/policy.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/greedy_policy.hpp:53:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 53 | delta(((initialEpsilon - minEpsilon) * decayRate) / annealInterval) | ~ ^~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/replay.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/prioritized_replay.hpp:204:57: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 204 | const double mass = arma::randu() * sumPerRange + bt * sumPerRange; | ^~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/noise.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/gaussian.hpp:48:40: warning: implicit conversion turns floating-point number into integer: 'const double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 48 | return sigma * randn(size) + mu; | ~~~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning.hpp:188: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:282:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 282 | projDist(l(j, batchNo), batchNo) += projDistUpper(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:283:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 283 | projDist(u(j, batchNo), batchNo) += projDistLower(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:74: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression.hpp:355: /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression_impl.hpp:251:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 251 | return (count * 100.0) / predictions.n_elem; | ^~~~~ ~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp:167: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:62:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | parameters.row(2 * hiddenSize).zeros(); | ~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:63:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | parameters.col(visibleSize).zeros(); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:217: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:27: note: in instantiation of function template specialization 'arma::linspace>' requested here 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:21: note: in instantiation of function template specialization 'arma::linspace>' requested here 24 | visitationOrder(linspace>(0, n - 1, n)) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:59: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:183:17: note: in instantiation of function template specialization 'ens::Proximal::ProjectToL1Ball>' requested here 183 | Proximal::ProjectToL1Ball(currentCoeffs, tau); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:50: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~~~~~~~~~~ ^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:50: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename Gen, arma::gen_ones>::elem_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 79 | arma::ones(numObservations) / numObservations)) | ~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:47:30: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::DiscreteDistribution' requested here 47 | DiscreteDistribution<> d(1); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | arma::ones(numObservations) / numObservations)) | ~~~~ ^~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:29:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | ObsVecType result(dimension); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:21: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::Random' requested here 52 | sizeA = 2 + d.Random()(0); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:40:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | if ((sumProb += probabilities[d][obs]) >= randObs) | ~~~~~~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:42:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | result[d] = ObsType(obs); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:50:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | result[d] = ObsType(probabilities[d].n_elem - 1); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:200:34: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::Evaluate' requested here 200 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:73:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:82:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:83:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:54:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 54 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:55:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 55 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:27:3: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Mat>' requested here 27 | MakeAlias(data, dataIn, dataIn.n_rows, dataIn.n_cols, false); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:173:34: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::Evaluate' requested here 173 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 68 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:72:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:74:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:73:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:78:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:79:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:42:37: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::RegularizedSVDFunction' requested here 42 | RegularizedSVDFunction rSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:308:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::Evaluate' requested here 308 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:82:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::vec implicitVecsNormSquare(numItems); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 88 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:93:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:99:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:128:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:129:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:83:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::CleanData' requested here 83 | svdpp.CleanData(implicitDenseData, implicitData, data); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:102:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 102 | values(i) = 1; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:70:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ 70 | numUsers + 2 * numItems - 1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~~~~~^~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:34:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 34 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:51:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::SVDPlusPlusFunction' requested here 51 | SVDPlusPlusFunction svdPPFunc(data, cleanedData, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:35:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 35 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ^~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:19: note: in instantiation of function template specialization 'mlpack::HRectBound<>::operator|=>' requested here 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:117:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:138:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | while (SplitType::AssignToLeftNode(data.col(left), splitInfo) && | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:146:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:116:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | return point[splitInfo.splitDimension] < splitInfo.splitVal; | ~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:22: note: in instantiation of function template specialization 'mlpack::MidpointSplit>::AssignToLeftNode>' requested here 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:158:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | center.set_size(dim); | ~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:522:58: note: in instantiation of member function 'mlpack::HRectBound<>::Center' requested here 522 | void Center(arma::Col& center) const { bound.Center(center); } | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1069:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::Center' requested here 1069 | Center(center); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:161:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 161 | center(i) = bounds[i].Mid(); | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:490:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 490 | neighborPtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:491:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 491 | distancePtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:592:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 592 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:593:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 593 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:23: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:24: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:615:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 615 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:616:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 616 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:633:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 633 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:97:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | referenceSet.col(referenceIndex)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:505:17: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::BaseCase' requested here 505 | rules.BaseCase(i, j); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:96:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double dist = distance.Evaluate(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:509:13: note: in instantiation of function template specialization 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetResults' requested here 509 | rules.GetResults(*neighborPtr, *distancePtr); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:61: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:211:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | lower = bounds[d].Lo() - point[d]; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:490:18: note: in instantiation of function template specialization 'mlpack::HRectBound<>::MinDistance>' requested here 490 | return bound.MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort_impl.hpp:55:25: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::MinDistance>' requested here 55 | return referenceNode->MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:24: note: in instantiation of function template specialization 'mlpack::NearestNS::BestPointToNodeDistance, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>' requested here 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:212:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | higher = point[d] - bounds[d].Hi(); | ~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:158:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | return SortPolicy::GetBestChild(querySet.col(queryIndex), referenceNode); | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp:38:27: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetBestChild' requested here 38 | size_t bestChild = rule.GetBestChild(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:571:19: note: in instantiation of member function 'mlpack::GreedySingleTreeTraverser, mlpack::NeighborSearchStat>, mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 571 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:38:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 38 | MakeAlias(const_cast(this->ratios), ratios, ratios.n_elem); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:58:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:32:22: note: in instantiation of member function 'mlpack::GaussianDistribution<>::GaussianDistribution' requested here 32 | dists(gaussians, GaussianDistribution<>(dimensionality)), | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:200: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution_impl.hpp:85:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * v(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:68:18: note: in instantiation of member function 'mlpack::GaussianDistribution<>::LogProbability' requested here 68 | dists[i].LogProbability(observation)); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:93:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 93 | MakeAlias(temp, logProb, observation.n_cols, logProb.n_rows * i); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:53:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:116:5: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::DiagonalGaussianDistribution' requested here 116 | DiagonalGaussianDistribution<>(dimensionality)), | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:54:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | covariance(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:55:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | invCov(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:55:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 55 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * logExponent(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:151:18: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 151 | dists[i].LogProbability(observation)); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:73:29: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:177:14: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 177 | dists[i].LogProbability(observation, temp); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:10: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:41:5: note: in instantiation of member function 'ens::SDP>::SDP' requested here 41 | sdp(initialPoint.n_rows, numSparseConstraints, numDenseConstraints), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:25:5: note: in instantiation of member function 'ens::LRSDPFunction>>::LRSDPFunction' requested here 25 | function(numSparseConstraints, numDenseConstraints, initialPoint), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:5: note: in instantiation of member function 'ens::LRSDP>>::LRSDP' requested here 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:7: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:46:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | sparseB(numSparseConstraints), | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:48:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | denseB(numDenseConstraints) | ~~~~~~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:126: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:39:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | typename ForwardType::bvec lambda(function.NumConstraints()); | ~~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:159:16: warning: implicit conversion turns floating-point number into integer: 'typename Mat::elem_type' (aka 'double') to 'bool' [-Wfloat-conversion] 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:211:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | augfunc.Lambda()[i] -= ElemType(augfunc.Sigma()) * p; | ~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:92:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | SDP().SparseB()[index]; | ~~~ ^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:139:42: note: in instantiation of function template specialization 'ens::LRSDPFunction>>::EvaluateConstraint>' requested here 139 | const ElemType p = std::pow(function.EvaluateConstraint(i, coordinates), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:98:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | - SDP().DenseB()[index1]; | ~~~ ^~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:214:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 214 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:216:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 216 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:244:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 244 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:247:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 247 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:460:30: note: in instantiation of function template specialization 'ens::L_BFGS::ChooseScalingFactor, arma::Cube>' requested here 460 | ElemType scalingFactor = ChooseScalingFactor(itNum, gradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:151:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 151 | BaseColType rho(numBasis); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:477:5: note: in instantiation of function template specialization 'ens::L_BFGS::SearchDirection, arma::Cube>' requested here 477 | SearchDirection(gradient, itNum, scalingFactor, s, y, searchDirection); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:152:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | BaseColType alpha(numBasis); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:163:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 163 | rho[iterationNum - i] = (tmp != ElemType(0)) ? (1 / tmp) : 1; | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:168:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | searchDirection -= alpha[iterationNum - i] * yMat; | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:176:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | ElemType beta = rho[iterationNum - i - 1] * | ~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:178:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | searchDirection += (alpha[iterationNum - i - 1] - beta) * | ~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:516:5: note: in instantiation of function template specialization 'ens::L_BFGS::UpdateBasisSet, arma::Mat, arma::Cube>' requested here 516 | UpdateBasisSet(itNum, iterate, oldIterate, gradient, oldGradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:129:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | arma::mat centroids(data.n_rows, clusters); | ~~~~~~~~~ ^~~~~~~~ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:29: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 298 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:288:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | counts.zeros(clusters); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:289:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 289 | centroids.zeros(data.n_rows, clusters); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:292:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:292:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:292:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:293:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | counts[assignments[i]]++; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:293:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | counts[assignments[i]]++; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:297:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 297 | if (counts[i] != 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | centroids.col(i) /= counts[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | centroids.col(i) /= counts[i]; | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:316:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 316 | const double dist = distance.Evaluate(data.col(i), centroids.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:316:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 316 | const double dist = distance.Evaluate(data.col(i), centroids.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:326:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 326 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:31: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 194 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:301:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 301 | Cluster(data, clusters, centroids, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:184:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | counts.zeros(clusters); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:185:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | centroids.zeros(data.n_rows, clusters); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:188:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:188:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:188:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | centroids.col(assignments[i]) += arma::vec(data.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:189:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 189 | counts[assignments[i]]++; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:189:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 189 | counts[assignments[i]]++; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:193:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 193 | if (counts[i] != 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 194 | centroids.col(i) /= counts[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 194 | centroids.col(i) /= counts[i]; | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:199:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | arma::Col counts(clusters); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:220:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | if (counts[i] == 0) | ~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/sample_initialization.hpp:41:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | centroids.set_size(data.n_rows, clusters); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:76:7: note: in instantiation of function template specialization 'mlpack::SampleInitialization::Cluster>' requested here 76 | ipp.Cluster(data, clusters, centroids); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:177:27: note: in instantiation of function template specialization 'mlpack::GetInitialAssignmentsOrCentroids, mlpack::SampleInitialization>' requested here 177 | bool gotAssignments = GetInitialAssignmentsOrCentroids(partitioner, data, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:301:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 301 | Cluster(data, clusters, centroids, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/sample_initialization.hpp:46:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | centroids.col(i) = data.col(index); | ~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/sample_initialization.hpp:46:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | centroids.col(i) = data.col(index); | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | newCentroids.col(i) /= counts(i); | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:212:25: note: in instantiation of member function 'mlpack::NaiveKMeans, arma::Mat>::Iterate' requested here 212 | cNorm = lloydStep.Iterate(centroids, centroidsOther, counts); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:301:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 301 | Cluster(data, clusters, centroids, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:61:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | centroids.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:60:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | const double dist = distance.Evaluate(dataset.col(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:72:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | localCentroids.col(closestCluster) += dataset.col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:72:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | localCentroids.col(closestCluster) += dataset.col(i); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:73:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | localCounts(closestCluster)++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:86:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | if (counts(i) != 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | newCentroids.col(i) /= counts(i); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | newCentroids.col(i) /= counts(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:96:76: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | cNorm += std::pow(distance.Evaluate(centroids.col(i), newCentroids.col(i)), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:96:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | cNorm += std::pow(distance.Evaluate(centroids.col(i), newCentroids.col(i)), | ~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:66:46: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | newCentroids.col(maxVarCluster) -= (1.0 / (clusterCounts[maxVarCluster] - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:224:30: note: in instantiation of function template specialization 'mlpack::MaxVarianceNewCluster::EmptyCluster, arma::Mat>' requested here 224 | emptyClusterAction.EmptyCluster(data, i, centroids, centroidsOther, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:301:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 301 | Cluster(data, clusters, centroids, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:88:40: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 88 | ((clusterCounts[maxVarCluster] + 1) * variances[maxVarCluster] - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:87:39: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | variances[maxVarCluster] = (1.0 / clusterCounts[maxVarCluster]) * | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:50:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (assignments[i] == maxVarCluster) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:52:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | const double dist = std::pow(distance.Evaluate(data.col(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:67:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | 1.0)) * arma::vec(data.col(furthestPoint)); | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:69:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | clusterCounts[emptyCluster]++; | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:70:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | newCentroids.col(emptyCluster) = arma::vec(data.col(furthestPoint)); | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:70:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | newCentroids.col(emptyCluster) = arma::vec(data.col(furthestPoint)); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:71:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | assignments[furthestPoint] = emptyCluster; | ~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:74:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | variances[emptyCluster] = 0; | ~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:23: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 155 | variances[i] /= clusterCounts[i]; | ~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:34:5: note: in instantiation of function template specialization 'mlpack::MaxVarianceNewCluster::Precalculate, arma::Mat>' requested here 34 | Precalculate(data, oldCentroids, clusterCounts, distance); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:224:30: note: in instantiation of function template specialization 'mlpack::MaxVarianceNewCluster::EmptyCluster, arma::Mat>' requested here 224 | emptyClusterAction.EmptyCluster(data, i, centroids, centroidsOther, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:301:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 301 | Cluster(data, clusters, centroids, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:130:3: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 130 | Cluster(data, clusters, assignments, centroids, initialGuess); | ^ kMeans.cpp:27:7: note: in instantiation of member function 'mlpack::KMeans<>::Cluster' requested here 27 | k.Cluster(data, clusters, assignments); // make call, filling 'assignments' | ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:134:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | const double dist = distance.Evaluate(data.col(i), oldCentroids.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:134:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | const double dist = distance.Evaluate(data.col(i), oldCentroids.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:144:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | variances[closestCluster] += std::pow(distance.Evaluate(data.col(i), | ~~~~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:145:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 145 | oldCentroids.col(closestCluster)), 2.0); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:144:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | variances[closestCluster] += std::pow(distance.Evaluate(data.col(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | if (clusterCounts[i] <= 1) | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:153:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | variances[i] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~~~~~ ^ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:587:16: warning: unused function 'drmp3_version' [-Wunused-function] 587 | DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:602:23: warning: unused function 'drmp3_version_string' [-Wunused-function] 602 | DRMP3_API const char* drmp3_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:2388:16: warning: unused function 'drmp3dec_f32_to_s16' [-Wunused-function] 2388 | DRMP3_API void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, size_t num_samples) | ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4057:24: warning: unused function 'drmp3_init_file_w' [-Wunused-function] 4057 | DRMP3_API drmp3_bool32 drmp3_init_file_w(drmp3* pMP3, const wchar_t* pFilePath, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4526:24: warning: 'static' function 'drmp3_get_pcm_frame_count' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 4526 | DRMP3_API drmp3_uint64 drmp3_get_pcm_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4560:24: warning: unused function 'drmp3_get_mp3_frame_count' [-Wunused-function] 4560 | DRMP3_API drmp3_uint64 drmp3_get_mp3_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4591:24: warning: unused function 'drmp3_calculate_seek_points' [-Wunused-function] 4591 | DRMP3_API drmp3_bool32 drmp3_calculate_seek_points(drmp3* pMP3, drmp3_uint32* pSeekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4731:24: warning: unused function 'drmp3_bind_seek_table' [-Wunused-function] 4731 | DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4890:18: warning: unused function 'drmp3_open_and_read_pcm_frames_f32' [-Wunused-function] 4890 | DRMP3_API float* drmp3_open_and_read_pcm_frames_f32(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4900:24: warning: unused function 'drmp3_open_and_read_pcm_frames_s16' [-Wunused-function] 4900 | DRMP3_API drmp3_int16* drmp3_open_and_read_pcm_frames_s16(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4911:18: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 4911 | DRMP3_API float* drmp3_open_memory_and_read_pcm_frames_f32(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4921:24: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 4921 | DRMP3_API drmp3_int16* drmp3_open_memory_and_read_pcm_frames_s16(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4933:18: warning: unused function 'drmp3_open_file_and_read_pcm_frames_f32' [-Wunused-function] 4933 | DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4943:24: warning: unused function 'drmp3_open_file_and_read_pcm_frames_s16' [-Wunused-function] 4943 | DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1476:16: warning: unused function 'drwav_version' [-Wunused-function] 1476 | DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1491:23: warning: unused function 'drwav_version_string' [-Wunused-function] 1491 | DRWAV_API const char* drwav_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3019:24: warning: unused function 'drwav_fmt_get_format' [-Wunused-function] 3019 | DRWAV_API drwav_uint16 drwav_fmt_get_format(const drwav_fmt* pFMT) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3891:24: warning: unused function 'drwav_init_with_metadata' [-Wunused-function] 3891 | DRWAV_API drwav_bool32 drwav_init_with_metadata(drwav* pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4636:24: warning: unused function 'drwav_init_write' [-Wunused-function] 4636 | DRWAV_API drwav_bool32 drwav_init_write(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4654:24: warning: unused function 'drwav_init_write_sequential_pcm_frames' [-Wunused-function] 4654 | DRWAV_API drwav_bool32 drwav_init_write_sequential_pcm_frames(drwav* pWav, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, drwav_write_proc onWrite, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4663:24: warning: unused function 'drwav_init_write_with_metadata' [-Wunused-function] 4663 | DRWAV_API drwav_bool32 drwav_init_write_with_metadata(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4676:24: warning: unused function 'drwav_target_write_size_bytes' [-Wunused-function] 4676 | DRWAV_API drwav_uint64 drwav_target_write_size_bytes(const drwav_data_format* pFormat, drwav_uint64 totalFrameCount, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3900:27: warning: unused function 'drwav_take_ownership_of_metadata' [-Wunused-function] 3900 | DRWAV_API drwav_metadata* drwav_take_ownership_of_metadata(drwav* pWav) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5997:24: warning: unused function 'drwav_seek_to_pcm_frame' [-Wunused-function] 5997 | DRWAV_API drwav_bool32 drwav_seek_to_pcm_frame(drwav* pWav, drwav_uint64 targetFrameIndex) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6107:24: warning: unused function 'drwav_get_cursor_in_pcm_frames' [-Wunused-function] 6107 | DRWAV_API drwav_result drwav_get_cursor_in_pcm_frames(drwav* pWav, drwav_uint64* pCursor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6124:24: warning: unused function 'drwav_get_length_in_pcm_frames' [-Wunused-function] 6124 | DRWAV_API drwav_result drwav_get_length_in_pcm_frames(drwav* pWav, drwav_uint64* pLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6253:24: warning: unused function 'drwav_write_pcm_frames' [-Wunused-function] 6253 | DRWAV_API drwav_uint64 drwav_write_pcm_frames(drwav* pWav, drwav_uint64 framesToWrite, const void* pData) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7012:24: warning: unused function 'drwav_read_pcm_frames_s16le' [-Wunused-function] 7012 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16le(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7022:24: warning: unused function 'drwav_read_pcm_frames_s16be' [-Wunused-function] 7022 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16be(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7465:24: warning: unused function 'drwav_read_pcm_frames_f32le' [-Wunused-function] 7465 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32le(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7475:24: warning: unused function 'drwav_read_pcm_frames_f32be' [-Wunused-function] 7475 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32be(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7948:24: warning: unused function 'drwav_read_pcm_frames_s32le' [-Wunused-function] 7948 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32le(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7958:24: warning: unused function 'drwav_read_pcm_frames_s32be' [-Wunused-function] 7958 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32be(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5367:24: warning: unused function 'drwav_init_file_with_metadata' [-Wunused-function] 5367 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata(drwav* pWav, const char* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5379:24: warning: unused function 'drwav_init_file_with_metadata_w' [-Wunused-function] 5379 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata_w(drwav* pWav, const wchar_t* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5435:24: warning: 'static' function 'drwav_init_file_write' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 5435 | DRWAV_API drwav_bool32 drwav_init_file_write(drwav* pWav, const char* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5445:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames' [-Wunused-function] 5445 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames(drwav* pWav, const char* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5455:24: warning: unused function 'drwav_init_file_write_w' [-Wunused-function] 5455 | DRWAV_API drwav_bool32 drwav_init_file_write_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5465:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames_w' [-Wunused-function] 5465 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5635:24: warning: unused function 'drwav_init_memory_with_metadata' [-Wunused-function] 5635 | DRWAV_API drwav_bool32 drwav_init_memory_with_metadata(drwav* pWav, const void* data, size_t dataSize, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5675:24: warning: unused function 'drwav_init_memory_write' [-Wunused-function] 5675 | DRWAV_API drwav_bool32 drwav_init_memory_write(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5685:24: warning: unused function 'drwav_init_memory_write_sequential_pcm_frames' [-Wunused-function] 5685 | DRWAV_API drwav_bool32 drwav_init_memory_write_sequential_pcm_frames(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8213:24: warning: unused function 'drwav_open_and_read_pcm_frames_s16' [-Wunused-function] 8213 | DRWAV_API drwav_int16* drwav_open_and_read_pcm_frames_s16(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8234:18: warning: unused function 'drwav_open_and_read_pcm_frames_f32' [-Wunused-function] 8234 | DRWAV_API float* drwav_open_and_read_pcm_frames_f32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8255:24: warning: unused function 'drwav_open_and_read_pcm_frames_s32' [-Wunused-function] 8255 | DRWAV_API drwav_int32* drwav_open_and_read_pcm_frames_s32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8277:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16' [-Wunused-function] 8277 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8298:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32' [-Wunused-function] 8298 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8319:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32' [-Wunused-function] 8319 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8342:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16_w' [-Wunused-function] 8342 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8363:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32_w' [-Wunused-function] 8363 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8384:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32_w' [-Wunused-function] 8384 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8407:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 8407 | DRWAV_API drwav_int16* drwav_open_memory_and_read_pcm_frames_s16(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8428:18: warning: unused function 'drwav_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 8428 | DRWAV_API float* drwav_open_memory_and_read_pcm_frames_f32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8449:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s32' [-Wunused-function] 8449 | DRWAV_API drwav_int32* drwav_open_memory_and_read_pcm_frames_s32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8507:23: warning: unused function 'drwav_bytes_to_s32' [-Wunused-function] 8507 | DRWAV_API drwav_int32 drwav_bytes_to_s32(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8519:23: warning: unused function 'drwav_bytes_to_s64' [-Wunused-function] 8519 | DRWAV_API drwav_int64 drwav_bytes_to_s64(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ In file included from kMeans.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1215:14: warning: 'static' function 'stbi_write_png' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1215 | STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:520:14: warning: 'static' function 'stbi_write_bmp' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 520 | STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:619:14: warning: 'static' function 'stbi_write_tga' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 619 | STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:794:14: warning: unused function 'stbi_write_hdr' [-Wunused-function] 794 | STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1616:14: warning: 'static' function 'stbi_write_jpg' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1616 | STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1231:14: warning: unused function 'stbi_write_png_to_func' [-Wunused-function] 1231 | STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:512:14: warning: unused function 'stbi_write_bmp_to_func' [-Wunused-function] 512 | STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:611:14: warning: unused function 'stbi_write_tga_to_func' [-Wunused-function] 611 | STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:787:14: warning: unused function 'stbi_write_hdr_to_func' [-Wunused-function] 787 | STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1607:14: warning: unused function 'stbi_write_jpg_to_func' [-Wunused-function] 1607 | STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:262:15: warning: unused function 'stbi_flip_vertically_on_write' [-Wunused-function] 262 | STBIWDEF void stbi_flip_vertically_on_write(int flag) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2269 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEnsmallen/include' -I'/Users/ripley/R/Library/mlpack/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c linearRegression.cpp -o linearRegression.o In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/prereqs.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/cereal/archives/json.hpp:68: /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:75:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 75 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:76:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 76 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:103:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 103 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:104:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:105:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 105 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:120:50: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 120 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:121:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 121 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:122:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 122 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:948:49: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 948 | s = g_deq_L12[ba*3 - 6 + b % 3]*(int)(1 << 21 >> b/3); | ~^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1218:40: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1218 | y *= g_expfrac[e & 3]*(1 << 30 >> (e >> 2)); | ~ ~~~~~~~~^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1311:50: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1311 | frac = (float)((x & 63) - sign) / ((x & ~63) + sign); | ~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1312:88: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1312 | return g_drmp3_pow43[16 + ((x + sign) >> 6)]*(1.f + frac*((4.f/3) + frac*(2.f/9)))*mult; | ~^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4579:65: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4579 | pcmFrameCountOutF = *pRunningPCMFrameCountFractionalPart + (pcmFrameCountIn / srcRatio); | ^~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4581:64: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4581 | *pRunningPCMFrameCountFractionalPart = pcmFrameCountOutF - pcmFrameCountOut; | ~ ^~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1739:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1739 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1744:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1744 | return ((drwav_uint16)data[1] << 0) | ((drwav_uint16)data[0] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:2189:78: warning: implicit conversion loses integer precision: 'drwav_uint64' (aka 'unsigned long long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 2189 | calculatedLoopCount = (pChunkHeader->sizeInBytes - DRWAV_SMPL_BYTES) / DRWAV_SMPL_LOOP_BYTES; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4679:104: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 4679 | drwav_uint64 targetDataSizeBytes = (drwav_uint64)((drwav_int64)totalFrameCount * pFormat->channels * pFormat->bitsPerSample/8.0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7163:27: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 7163 | *pOut++ = (float)((drwav_int64)sample / 9223372036854775807.0); | ^~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8483:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 8483 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4834:40: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4834 | *dest16 = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4839:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4839 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4845:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4845 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4846:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4846 | dest16[1] = (cur[2] << 8) | cur[3]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4847:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4847 | dest16[2] = (cur[4] << 8) | cur[5]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1325:18: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 1325 | bits[0] = val & ((1<(imageBuf, dimension, 1, | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_image.hpp:86:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | images.col(i) = arma::Mat(imageBuf, dimension, 1, | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load.hpp:30: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:443:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 443 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:513:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 513 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:481:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 481 | arma::fmat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:496:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | arma::Mat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), 75 | opts.Width() * opts.Channels()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:26: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:393:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 393 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:323:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 323 | dataFormat.channels = opts.Channels(); | ~ ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:324:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 324 | dataFormat.sampleRate = opts.SampleRate(); | ~ ~~~~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:325:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 325 | dataFormat.bitsPerSample = opts.BitsPerSample(); | ~ ~~~~~^~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:36: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:69: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:223:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 223 | int midWidth = static_cast(largestRatio * opts.Width()); | ~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:224:56: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 224 | int midHeight = static_cast(largestRatio * opts.Height()); | ~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:247:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 247 | int cropUpDownEqually = (nRowsCrop / 2) * opts.Channels() * midWidth; | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:7: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:37: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:42: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels.hpp:52: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels_impl.hpp:55:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | labels[i] = curLabel; | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding.hpp:67: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:53:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels[i] = curLabel; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:22: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:131:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | const size_t dimOffset = (row == 0) ? 0 : dimensionOffsets[row - 1]; | ~~~~~~~~~~~~~~~~ ~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:212:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 212 | testSize += floor(labelCount * testRatio); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:213:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 213 | trainSize += labelCount - floor(labelCount * testRatio); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks.hpp:226: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:29:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | rDiag(i) = -1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:31:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | rDiag(i) = 1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:33:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | rDiag(i) = 0; | ~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:39:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 39 | std::pow(M_PI, dimension / 2.0) / | ^~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel.hpp:116: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp:71:20: warning: implicit conversion loses integer precision: 'int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 71 | sub[j] = tolower(sub[j]); | ~ ^~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:27: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree.hpp:300: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree_impl.hpp:489:8: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 489 | if (!sigma) | ~^~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split.hpp:85: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:183:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 183 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:184:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 184 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:218:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 218 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:219:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 219 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:314:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 314 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:323:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 323 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:461:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 461 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:470:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 470 | bestIndex = index; | ~ ^~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp:59: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:51:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:56:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:98:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 98 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:103:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 103 | bestIndex = i; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split.hpp:75: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:252:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 252 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:262:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 262 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:263:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 263 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:273:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 273 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:290:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 290 | bestIndexMinOverlapSplit = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:358:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 358 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:369:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 369 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:370:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 370 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:380:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 380 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:398:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 398 | bestIndexMinOverlapSplit = i; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/is_spill_tree.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/spill_tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split_impl.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | snd = points[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:93:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | snd = points[i]; | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:64: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe.hpp:201: /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:93:16: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 93 | highFreq = sampleRate / 2.0f; | ^~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:95:63: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 95 | size_t lengthInSamples = static_cast(windowLength * sampleRate | ~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:97:60: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 97 | size_t stepsInSamples = static_cast(windowStep * sampleRate | ~ ^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1.hpp:106: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:43:35: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 43 | double precision = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:44:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 44 | double recall = double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:85:37: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | double precision = double(tp) / positivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:86:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 86 | double recall = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:78:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | arma::vec f1s = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:87:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | f1s(c) = (precision + recall == 0.0) ? 0.0 : | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:72:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec precisions = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score.hpp:77: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score_impl.hpp:41:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 41 | return totalSumSquared ? 1.0 : DBL_MIN; | ^~~~~~~~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:31: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | recalls(c) = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:72:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec recalls = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | recalls(c) = double(tp) / positiveLabels; | ~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score.hpp:56: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:74:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 74 | tpr /= numberOfTrueLabels; | ~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:75:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 75 | fpr /= numberOfFalseLabels; | ~~ ^~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score.hpp:104: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:45:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | size_t clusterLabel = labels(clusterLabels(j)); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (labels(i) != clusterLabel) { | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:63:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | sampleScores(i) = 0.0; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:65:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | sampleScores(i) = minInterClusterDistance - intraClusterDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:66:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | sampleScores(i) /= std::max( | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:102:33: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 102 | distance /= (numSameCluster - sameCluster); | ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv.hpp:321: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:259:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 259 | << "a score of " << evaluations(i) << "; ignoring when computing " | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:98: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:35:21: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 35 | width(100.0 / widthIn), | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:46: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:146:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 146 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:163:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 162 | output << "] " << progress << "% - ETA: " << (size_t) (stepTimer.toc() * | ~ 163 | (epochSize - step + 1)) % 60 << "s - loss: " << | ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:63: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:52: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:209:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 209 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:225:68: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:100: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:46: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:39: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~^~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:11: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp:156: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:206:30: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2, arma::op_max>>::value && resolves_to_vector, arma::op_max>>::yes, typename Op, arma::op_max>::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 206 | vertices = max(max(edges)) + 1; | ~ ~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:248:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | arma::vec edge = edges.col(i - 1); | ~~~ ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 287 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 288 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 287 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 304 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 305 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:340:13: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 340 | float m = NumConstraints(); | ~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:341:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 341 | float r = 0.5 + std::sqrt(0.25 + 2 * m); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:342:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 342 | if (ceil(r) > vertices) | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:343:9: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 343 | r = vertices; // An upper bound on the dimension. | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:349:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 349 | for (size_t i = 0; i < r; i++) | ^ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:355:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 355 | std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:22: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp:144: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:28:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:33:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | initialPoint(i) = -1.2; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:37:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | initialPoint(i) = 1; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:45:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | visitationOrder = arma::shuffle(arma::linspace>(0, n - 2, | ~~~~ 45 | n - 1)); | ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:59:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:97:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:32: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function.hpp:138: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 24 | visitationOrder(linspace>(0, n - 1, n)) | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:32:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | visitationOrder = shuffle(linspace>(0, n - 1, n)); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:48:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:38: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function.hpp:140: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:33:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:45:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:70:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:39: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function.hpp:74: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:24:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace>(0, NumFunctions() - 1, | ~~~~ 24 | NumFunctions())) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:30:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | visitationOrder = arma::shuffle(arma::linspace >(0, | ~~~~ 30 | (NumFunctions() - 1), NumFunctions())); | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:45:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:77:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:42: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function.hpp:139: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:25:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint(i) = 5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:32:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | initialPoint(i) = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:39:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:53:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:126:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 126 | double GetFinalObjective() const { return -39.16599 * n; } | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:143: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:30:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint[i] = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:36:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 36 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:50:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:78:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:62: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/maf/maf5_function.hpp:76:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | a(a), | ~^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:124:16: warning: unused variable 'result' [-Wunused-variable] 124 | const bool result = Optimize(function, coordinates, this->deprecatedLambda, | ^~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:116: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ^~~~~~~~~~~~ ~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:169:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 169 | (batchSize * gradientNorm)) / v; | ^~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:119: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes.hpp:179: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 114 | currentLargeLambda / defaultLambda, u * u)); | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ~ 114 | currentLargeLambda / defaultLambda, u * u)); | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:113:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ^~~~~~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:121: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne.hpp:208: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:36: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:186:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 186 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:189:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 189 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:122: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de.hpp:148: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:105:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 105 | l = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | m = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_classic.hpp:52:48: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | typename MatType::elem_type gamma = 2.0 / (numIter + 2.0); | ^~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:130: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search.hpp:71: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search_impl.hpp:77:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | for (size_t j = 0; j < numCategories(i); ++j) | ~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:135: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea.hpp:485: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:308:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 308 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:310:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 310 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:570:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | indexes = arma::linspace>(0, front.size() - 1, front.size()); | ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:749:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:760:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 760 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:136: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead.hpp:357: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead_impl.hpp:300:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 300 | const size_t idx = idxShuffle(i); | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:137: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2.hpp:382: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:302:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 302 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:304:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 304 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:139: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp:16: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ^~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:153: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:76:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | er *= multFactor; | ~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:35: warning: implicit conversion turns floating-point number into integer: '__promote_t' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 83 | snapshotEpochs - snapshots + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to '__promote_t' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ^~~~~~~~~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:157: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa.hpp:137: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa_impl.hpp:34:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 34 | ak(0.001 * maxIterations), | ~ ^~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:351: /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:96:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | arma::Row numCategories(datasetInfo.Dimensionality()); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:99:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | numCategories[d] = datasetInfo.NumMappings(d); | ~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron.hpp:246: /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:251:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | if (maxIndexRow != labels(0, j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:255:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | tempLabel = labels(0, j); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:72:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:107:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:115:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:116:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:127:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:128:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:129:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:145:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 145 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:165:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:169:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:170:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:174:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:175:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:183:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:41:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:203:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 203 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:132:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 132 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:138:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:158:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:81:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | totalLeftWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:88:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | totalRightWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:113:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | totalLeftWeight += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:114:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | totalRightWeight -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp:160: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:65:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | leftWeights.set_size(leftLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:213:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 213 | rightWeights.set_size(rightLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:49:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | arma::umat categoryCounts(numCategories, 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:50:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | arma::vec categoryP(numCategories); | ~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:62:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:91:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:92:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:93:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:95:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 95 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:94:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:96:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:111:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | arma::uvec categories(numCategories); | ~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:116:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::mat classWeightSums = arma::zeros(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:130:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | = arma::zeros>(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:173:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | arma::vec categoryResponse(numCategories); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:174:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | arma::uvec categoryCounts(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:188:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:217:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 217 | splitInfo.set_size(numCategories + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:218:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 218 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:219:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:221:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 221 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:220:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:222:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 222 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:267:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 267 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:275:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 275 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:280:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:294:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 294 | categories[k] = 1; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:359:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 359 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:367:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:372:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:386:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 386 | categories[k] = 1; | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:45:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | values.set_size(numDimensions + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:55:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | value = RandInt(dimensions); | ~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:61:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (values[j] == value) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:69:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | values[i] = value; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:72:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | values[numDimensions] = std::numeric_limits::max(); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:88:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | return values[++i]; | ~~~~~~ ^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/random_dimension_select.hpp:32:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 32 | size_t Begin() const { return RandInt(dimensions); } | ~~~~~~~ ^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1053:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1053 | arma::vec v = probabilities.unsafe_col(i); // Alias of column. | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:609: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor.hpp:527: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:688:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 688 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:705:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 705 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:722:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 722 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:749:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:850:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 850 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:859:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 859 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:876:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 876 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:903:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:301: /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:435:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 435 | if (k == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:450:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 450 | if (k == labels(j)) | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add.hpp:94: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 52 | sizeA = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:53:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 53 | sizeB = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:37:63: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | arma::field vecInput = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:38:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | arma::field vecLabels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:44:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | arma::vec weights(bitLen - 1); | ~~~~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:58:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~ 58 | sizeA + sizeB + 1, DistrParam(0, 1)); | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:57:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:122:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | input.set_size(fieldInput(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:123:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | labels.set_size(fieldLabels(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:32: warning: implicit conversion turns floating-point number into integer: 'const double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 140 | size_t val = input.at(i).at(j); | ~~~ ~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:138:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | for (size_t j = 0; j < input.at(i).n_elem; ++j) | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy.hpp:96: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:67:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | size = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:52:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:53:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:59:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | arma::vec weights(maxLength - 1); | ~~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:70:7: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | arma::colvec vecInput = randi( | ~~~~~ 70 | size, DistrParam(0, 1)); | ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:72:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | repmat(vecInput, nRepeats, 1)); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:75:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | input(i).col(0).rows(0, vecInput.n_elem - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:78:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | input(i).at(vecInput.n_elem, 0) = 0.5; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:80:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | ones(totSize - vecInput.n_elem - addSeparator); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:96:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | input = zeros(fieldInput(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:97:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | labels = zeros(fieldLabels(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score_impl.hpp:47:12: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 47 | score /= testSize; | ~~ ^~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 69 | val += input(i).at(k, j); | ~~~~^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:50:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:51:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:58:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 58 | size = RandInt(2, maxLength+1); | ~~~~~~~ ~~~~~~~~~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:62:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::colvec vals(size); | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:71:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | vals[j] = val; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:78:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | labels(i) = itemAns; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:90:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | sepInput.at(ptr, 0) = 0.5; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:93:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | input(i) = sepInput; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:38: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/nguyen_widrow_init.hpp:80:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 80 | double beta = 0.7 * std::pow(cols, 1.0 / rows); | ~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:34: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/models.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny.hpp:274: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny_impl.hpp:210:16: warning: unused variable 'numClasses' [-Wunused-variable] 210 | const size_t numClasses = classNames.size(); | ^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn.hpp:114: /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:135:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 135 | const size_t tableIndex = tableLocations[p.second]; | ~~~~~~~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:148:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 148 | tableLocations[p.second]++; | ~~~~~~~~~~~~~~ ~~^~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:229:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:270:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 270 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap.hpp:65: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:23: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:943:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 943 | effectiveError /= numCases; | ~~ ^~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t itemNum = max(data.row(1)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | itemMean(item) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(item) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | itemMean = arma::vec(itemNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(itemNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t item = combinations(1, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t userNum = max(data.row(0)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | userMean(user) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(user) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | userMean = arma::vec(userNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(userNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t user = combinations(0, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:106:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:56: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:103:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:112:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:199:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:201:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:200:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 200 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:208:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | ratingError * parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:210:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | ratingError * parameters.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:231:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 231 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:298:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:297:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 297 | double ratingError = rating - dot(iterate.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:303:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 303 | ratingError * iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:302:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 302 | arma::mat userUpdate = stepSize * (lambda * iterate.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:305:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | ratingError * iterate.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:304:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | arma::mat itemUpdate = stepSize * (lambda * iterate.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:99:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:109:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:108:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:381:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 381 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:340:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:346:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:347:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:348:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 348 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:375:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 375 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:376:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 376 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:518:42: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 518 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:406:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 405 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 406 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:482:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 482 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:483:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 483 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:484:68: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 484 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:511:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 511 | arma::Col implicitItems(implicitCount); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:512:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 512 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:513:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 513 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:517:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 517 | itemImplicitUpdate.col(implicitIndex) = | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:522:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 522 | implicitItems(implicitIndex) = it.row(); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:110:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:128:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:129:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:138:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:140:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | rating = w * userVec + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:23: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/interpolation_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:54: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:116:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::vec constant(neighborNum); | ~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:118:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | arma::vec userRating(cleanedData.col(queryUser)); | ~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:29: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:15: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:41: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:25: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:168:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | if (constant(i) == 0) | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:169:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | constant(i) = std::numeric_limits::min(); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:11: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:198:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 198 | recommendations.set_size(numRecs, users.n_elem); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:199:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | arma::mat values(numRecs, users.n_elem); | ~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:223:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 223 | ratings += weights(j) * neighborRatings; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:266:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 266 | << "for user " << users(i) << " (not enough un-rated items)!" | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:379:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 379 | predictions(ordering[i]) = rating; | ~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:53: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:41:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | parent[i] = i; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:42:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | rank[i] = 0; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:57:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | if (parent[x] == x) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:65:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | return parent[x]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:91:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | parent[yRoot] = xRoot; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:95:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | parent[xRoot] = yRoot; | ~~~~~~ ^~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/random_point_selection.hpp:42:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 42 | const size_t index = RandInt(max); | ~~~~~~~ ^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree.hpp:361: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils.hpp:147: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:31:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | arma::Mat table(numLeaves, (numClasses + 1)); | ~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:38:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | const size_t label = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:78:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | if (imps[i] > max) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:79:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | max = imps[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:124:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:179:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 179 | arma::vec regularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:215:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | cvOldFromNew[i] = i; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:224:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 224 | arma::vec cvRegularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:273:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 273 | - (long double) regularizationConstants[i]; | ~~~~~~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:290:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 290 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (ratios[i] > 1.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:50:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (ratios[i] < 0.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:87:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | distribution[p] = minDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:88:40: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 88 | ((clusterCounts[maxVarCluster] + 1) * variances[maxVarCluster] - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:87:39: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | variances[maxVarCluster] = (1.0 / clusterCounts[maxVarCluster]) * | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:50:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (assignments[i] == maxVarCluster) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:69:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | clusterCounts[emptyCluster]++; | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:71:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | assignments[furthestPoint] = emptyCluster; | ~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:74:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | variances[emptyCluster] = 0; | ~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:23: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 155 | variances[i] /= clusterCounts[i]; | ~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | if (clusterCounts[i] <= 1) | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:153:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | variances[i] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:60:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | newCentroids.shed_col(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:61:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | clusterCounts.shed_row(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | newCentroids.col(i) /= counts(i); | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:29: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans.hpp:173: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp:179:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 179 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans.hpp:66: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans_impl.hpp:165:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 165 | newCentroids.col(c) /= counts[c]; | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:31: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans.hpp:64: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp:141:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 141 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp:70:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:31: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 194 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:29: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 298 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:217: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:106:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:327: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:36:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 36 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:33:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:67:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:87:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:141:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:171:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:185:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:211:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | double newProb = LogProbability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:215:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:235:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 235 | arma::mat logLikelihoods(gaussians, data.n_cols); | ~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:246:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | loglikelihood += AccuLog(logLikelihoods.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:295:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 295 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:380:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:330: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm.hpp:326: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:66:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:120:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 120 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:117:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:150:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:170:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:219:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:246:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:255:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:276:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 276 | double newProb = Probability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:280:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:296:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | arma::mat likelihoods(gaussians, observations.n_cols); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:307:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 307 | if (accu(likelihoods.col(j)) == 0) | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:310:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 310 | logLikelihood += std::log(accu(likelihoods.col(j))); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:367:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:44: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm.hpp:549: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:507:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 507 | stateSeqBack(state, 0) = state; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:546:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long' [-Wfloat-conversion] 545 | stateSeq[dataSeq.n_cols - t] = | ~ 546 | stateSeqBack(stateSeq[dataSeq.n_cols - t + 1], dataSeq.n_cols - t + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 32 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 33 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:46:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:54:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:63:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | impurity -= ((double) splitCounts[i] / (double) numElem) * | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 38 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 39 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:52:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:61:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:71:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | gain += ((double) splitCounts[i] / (double) numElem) * splitGain; | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:573: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1210:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1210 | size_t currentIndex = counts[direction]; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1212:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1212 | counts[direction]++; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1221:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1221 | if (counts[i] == 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1244:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1244 | for (size_t j = 0; j < counts[i]; ++j) | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde.hpp:362: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_impl.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules.hpp:229: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:233:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 233 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:448:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 448 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/naive_method.hpp:83:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 83 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/ordered_selection.hpp:35:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | return arma::linspace >(0, m - 1, m); | ~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:33:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::Col selectedPoints(m); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:35:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | selectedPoints(i) = RandInt(0, data.n_cols); | ~~~~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:73:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:51: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm.hpp:467: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:315:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 315 | return (double) 100.0 * count / labels.n_elem; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:55: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search.hpp:483: /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:789:24: warning: implicit conversion loses floating-point precision: 'double' to 'const float' [-Wimplicit-float-conversion] 789 | const float cutoff = 0.1; | ~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:828:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 828 | refPointsConsideredSmall.zeros(maxNumPoints); | ~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:56: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion.hpp:146: /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:123:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 123 | if (ceil(r) > mpn) | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:124:9: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 124 | r = mpn; // An upper bound on the dimension. | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:125:10: warning: implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 125 | return ceil(r); | ~~~~~~ ^~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier.hpp:296: /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:103:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:133:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:146:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:334:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:385:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 385 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:475:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 475 | arma::vec probs = probabilities.unsafe_col(i); | ~~~~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:68:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:70:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:73:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:75:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:67:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:69:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:72:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:74:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:188:39: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 188 | else if (state.Row() == fruitTree.Depth()) | ~~ ~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:228:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat branches = zeros(rewardSize, (size_t) std::pow(2, depth - 1)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:241:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | return tree.col(GetIndex(state)); | ~~~ ^~~~~~~~~~~~~~~ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEnsmallen/include' -I'/Users/ripley/R/Library/mlpack/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c loadDefaultPrediction.cpp -o loadDefaultPrediction.o In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/policy.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/greedy_policy.hpp:53:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 53 | delta(((initialEpsilon - minEpsilon) * decayRate) / annealInterval) | ~ ^~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/replay.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/prioritized_replay.hpp:204:57: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 204 | const double mass = arma::randu() * sumPerRange + bt * sumPerRange; | ^~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/noise.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/gaussian.hpp:48:40: warning: implicit conversion turns floating-point number into integer: 'const double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 48 | return sigma * randn(size) + mu; | ~~~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning.hpp:188: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:282:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 282 | projDist(l(j, batchNo), batchNo) += projDistUpper(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:283:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 283 | projDist(u(j, batchNo), batchNo) += projDistLower(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:74: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression.hpp:355: /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression_impl.hpp:251:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 251 | return (count * 100.0) / predictions.n_elem; | ^~~~~ ~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp:167: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:62:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | parameters.row(2 * hiddenSize).zeros(); | ~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:63:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | parameters.col(visibleSize).zeros(); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:217: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:27: note: in instantiation of function template specialization 'arma::linspace>' requested here 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:21: note: in instantiation of function template specialization 'arma::linspace>' requested here 24 | visitationOrder(linspace>(0, n - 1, n)) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:59: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:183:17: note: in instantiation of function template specialization 'ens::Proximal::ProjectToL1Ball>' requested here 183 | Proximal::ProjectToL1Ball(currentCoeffs, tau); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:50: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~~~~~~~~~~ ^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:50: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename Gen, arma::gen_ones>::elem_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 79 | arma::ones(numObservations) / numObservations)) | ~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:47:30: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::DiscreteDistribution' requested here 47 | DiscreteDistribution<> d(1); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | arma::ones(numObservations) / numObservations)) | ~~~~ ^~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:29:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | ObsVecType result(dimension); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:21: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::Random' requested here 52 | sizeA = 2 + d.Random()(0); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:40:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | if ((sumProb += probabilities[d][obs]) >= randObs) | ~~~~~~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:42:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | result[d] = ObsType(obs); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:50:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | result[d] = ObsType(probabilities[d].n_elem - 1); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:200:34: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::Evaluate' requested here 200 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:73:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:82:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:83:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:54:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 54 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:55:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 55 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:27:3: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Mat>' requested here 27 | MakeAlias(data, dataIn, dataIn.n_rows, dataIn.n_cols, false); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:173:34: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::Evaluate' requested here 173 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 68 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:72:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:74:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:73:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:78:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:79:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:42:37: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::RegularizedSVDFunction' requested here 42 | RegularizedSVDFunction rSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:308:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::Evaluate' requested here 308 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:82:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::vec implicitVecsNormSquare(numItems); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 88 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:93:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:99:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:128:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:129:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:83:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::CleanData' requested here 83 | svdpp.CleanData(implicitDenseData, implicitData, data); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:102:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 102 | values(i) = 1; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:70:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ 70 | numUsers + 2 * numItems - 1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~~~~~^~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:34:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 34 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:51:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::SVDPlusPlusFunction' requested here 51 | SVDPlusPlusFunction svdPPFunc(data, cleanedData, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:35:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 35 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ^~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:19: note: in instantiation of function template specialization 'mlpack::HRectBound<>::operator|=>' requested here 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:117:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:138:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | while (SplitType::AssignToLeftNode(data.col(left), splitInfo) && | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:146:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:116:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | return point[splitInfo.splitDimension] < splitInfo.splitVal; | ~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:22: note: in instantiation of function template specialization 'mlpack::MidpointSplit>::AssignToLeftNode>' requested here 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:158:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | center.set_size(dim); | ~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:522:58: note: in instantiation of member function 'mlpack::HRectBound<>::Center' requested here 522 | void Center(arma::Col& center) const { bound.Center(center); } | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1069:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::Center' requested here 1069 | Center(center); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:161:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 161 | center(i) = bounds[i].Mid(); | ~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:490:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 490 | neighborPtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:491:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 491 | distancePtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:592:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 592 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:593:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 593 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:23: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:24: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:615:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 615 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:616:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 616 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:633:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 633 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:97:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | referenceSet.col(referenceIndex)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:505:17: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::BaseCase' requested here 505 | rules.BaseCase(i, j); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:96:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double dist = distance.Evaluate(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:509:13: note: in instantiation of function template specialization 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetResults' requested here 509 | rules.GetResults(*neighborPtr, *distancePtr); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:61: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:211:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | lower = bounds[d].Lo() - point[d]; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:490:18: note: in instantiation of function template specialization 'mlpack::HRectBound<>::MinDistance>' requested here 490 | return bound.MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort_impl.hpp:55:25: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::MinDistance>' requested here 55 | return referenceNode->MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:24: note: in instantiation of function template specialization 'mlpack::NearestNS::BestPointToNodeDistance, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>' requested here 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:212:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | higher = point[d] - bounds[d].Hi(); | ~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:158:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | return SortPolicy::GetBestChild(querySet.col(queryIndex), referenceNode); | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp:38:27: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetBestChild' requested here 38 | size_t bestChild = rule.GetBestChild(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:571:19: note: in instantiation of member function 'mlpack::GreedySingleTreeTraverser, mlpack::NeighborSearchStat>, mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 571 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:38:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 38 | MakeAlias(const_cast(this->ratios), ratios, ratios.n_elem); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:58:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:32:22: note: in instantiation of member function 'mlpack::GaussianDistribution<>::GaussianDistribution' requested here 32 | dists(gaussians, GaussianDistribution<>(dimensionality)), | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:200: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution_impl.hpp:85:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * v(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:68:18: note: in instantiation of member function 'mlpack::GaussianDistribution<>::LogProbability' requested here 68 | dists[i].LogProbability(observation)); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:93:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 93 | MakeAlias(temp, logProb, observation.n_cols, logProb.n_rows * i); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:53:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:116:5: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::DiagonalGaussianDistribution' requested here 116 | DiagonalGaussianDistribution<>(dimensionality)), | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:54:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | covariance(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:55:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | invCov(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:55:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 55 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * logExponent(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:151:18: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 151 | dists[i].LogProbability(observation)); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:73:29: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:177:14: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 177 | dists[i].LogProbability(observation, temp); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:10: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:41:5: note: in instantiation of member function 'ens::SDP>::SDP' requested here 41 | sdp(initialPoint.n_rows, numSparseConstraints, numDenseConstraints), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:25:5: note: in instantiation of member function 'ens::LRSDPFunction>>::LRSDPFunction' requested here 25 | function(numSparseConstraints, numDenseConstraints, initialPoint), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:5: note: in instantiation of member function 'ens::LRSDP>>::LRSDP' requested here 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:7: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:46:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | sparseB(numSparseConstraints), | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:48:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | denseB(numDenseConstraints) | ~~~~~~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:126: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:39:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | typename ForwardType::bvec lambda(function.NumConstraints()); | ~~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:159:16: warning: implicit conversion turns floating-point number into integer: 'typename Mat::elem_type' (aka 'double') to 'bool' [-Wfloat-conversion] 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:211:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | augfunc.Lambda()[i] -= ElemType(augfunc.Sigma()) * p; | ~~~~~~~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:92:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | SDP().SparseB()[index]; | ~~~ ^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:139:42: note: in instantiation of function template specialization 'ens::LRSDPFunction>>::EvaluateConstraint>' requested here 139 | const ElemType p = std::pow(function.EvaluateConstraint(i, coordinates), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:98:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | - SDP().DenseB()[index1]; | ~~~ ^~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:214:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 214 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:216:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 216 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:244:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 244 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:247:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 247 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:460:30: note: in instantiation of function template specialization 'ens::L_BFGS::ChooseScalingFactor, arma::Cube>' requested here 460 | ElemType scalingFactor = ChooseScalingFactor(itNum, gradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:151:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 151 | BaseColType rho(numBasis); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:477:5: note: in instantiation of function template specialization 'ens::L_BFGS::SearchDirection, arma::Cube>' requested here 477 | SearchDirection(gradient, itNum, scalingFactor, s, y, searchDirection); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:152:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | BaseColType alpha(numBasis); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:163:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 163 | rho[iterationNum - i] = (tmp != ElemType(0)) ? (1 / tmp) : 1; | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:168:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | searchDirection -= alpha[iterationNum - i] * yMat; | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:176:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | ElemType beta = rho[iterationNum - i - 1] * | ~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:178:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | searchDirection += (alpha[iterationNum - i - 1] - beta) * | ~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:516:5: note: in instantiation of function template specialization 'ens::L_BFGS::UpdateBasisSet, arma::Mat, arma::Cube>' requested here 516 | UpdateBasisSet(itNum, iterate, oldIterate, gradient, oldGradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/regression_distribution.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression.hpp:280: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:151:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 151 | p.insert_rows(0, arma::ones>(1, nCols)); | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:45:3: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::Train, arma::Row, arma::Row, void, void>' requested here 45 | Train(predictors, responses, weights, lambda, intercept); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:27:5: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::LinearRegression, arma::Row, arma::Row, void, void>' requested here 27 | LinearRegression(predictors, responses, | ^ linearRegression.cpp:36:30: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::LinearRegression, arma::Row, void>' requested here 36 | mlpack::LinearRegression lr(X, vecY, lambda, intercept); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/regression_distribution.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression.hpp:280: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:273:43: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Row::elem_type>::yes, typename Row::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 273 | const ElemType cost = dot(temp, temp) / nCols; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:170:10: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::ComputeError, arma::Row>' requested here 170 | return ComputeError(predictors, responses); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:45:3: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::Train, arma::Row, arma::Row, void, void>' requested here 45 | Train(predictors, responses, weights, lambda, intercept); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_regression/linear_regression_impl.hpp:27:5: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::LinearRegression, arma::Row, arma::Row, void, void>' requested here 27 | LinearRegression(predictors, responses, | ^ linearRegression.cpp:36:30: note: in instantiation of function template specialization 'mlpack::LinearRegression<>::LinearRegression, arma::Row, void>' requested here 36 | mlpack::LinearRegression lr(X, vecY, lambda, intercept); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:587:16: warning: unused function 'drmp3_version' [-Wunused-function] 587 | DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:602:23: warning: unused function 'drmp3_version_string' [-Wunused-function] 602 | DRMP3_API const char* drmp3_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:2388:16: warning: unused function 'drmp3dec_f32_to_s16' [-Wunused-function] 2388 | DRMP3_API void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, size_t num_samples) | ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4057:24: warning: unused function 'drmp3_init_file_w' [-Wunused-function] 4057 | DRMP3_API drmp3_bool32 drmp3_init_file_w(drmp3* pMP3, const wchar_t* pFilePath, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4526:24: warning: 'static' function 'drmp3_get_pcm_frame_count' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 4526 | DRMP3_API drmp3_uint64 drmp3_get_pcm_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4560:24: warning: unused function 'drmp3_get_mp3_frame_count' [-Wunused-function] 4560 | DRMP3_API drmp3_uint64 drmp3_get_mp3_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4591:24: warning: unused function 'drmp3_calculate_seek_points' [-Wunused-function] 4591 | DRMP3_API drmp3_bool32 drmp3_calculate_seek_points(drmp3* pMP3, drmp3_uint32* pSeekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4731:24: warning: unused function 'drmp3_bind_seek_table' [-Wunused-function] 4731 | DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4890:18: warning: unused function 'drmp3_open_and_read_pcm_frames_f32' [-Wunused-function] 4890 | DRMP3_API float* drmp3_open_and_read_pcm_frames_f32(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4900:24: warning: unused function 'drmp3_open_and_read_pcm_frames_s16' [-Wunused-function] 4900 | DRMP3_API drmp3_int16* drmp3_open_and_read_pcm_frames_s16(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4911:18: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 4911 | DRMP3_API float* drmp3_open_memory_and_read_pcm_frames_f32(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4921:24: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 4921 | DRMP3_API drmp3_int16* drmp3_open_memory_and_read_pcm_frames_s16(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4933:18: warning: unused function 'drmp3_open_file_and_read_pcm_frames_f32' [-Wunused-function] 4933 | DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4943:24: warning: unused function 'drmp3_open_file_and_read_pcm_frames_s16' [-Wunused-function] 4943 | DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1476:16: warning: unused function 'drwav_version' [-Wunused-function] 1476 | DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1491:23: warning: unused function 'drwav_version_string' [-Wunused-function] 1491 | DRWAV_API const char* drwav_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3019:24: warning: unused function 'drwav_fmt_get_format' [-Wunused-function] 3019 | DRWAV_API drwav_uint16 drwav_fmt_get_format(const drwav_fmt* pFMT) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3891:24: warning: unused function 'drwav_init_with_metadata' [-Wunused-function] 3891 | DRWAV_API drwav_bool32 drwav_init_with_metadata(drwav* pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4636:24: warning: unused function 'drwav_init_write' [-Wunused-function] 4636 | DRWAV_API drwav_bool32 drwav_init_write(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4654:24: warning: unused function 'drwav_init_write_sequential_pcm_frames' [-Wunused-function] 4654 | DRWAV_API drwav_bool32 drwav_init_write_sequential_pcm_frames(drwav* pWav, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, drwav_write_proc onWrite, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4663:24: warning: unused function 'drwav_init_write_with_metadata' [-Wunused-function] 4663 | DRWAV_API drwav_bool32 drwav_init_write_with_metadata(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4676:24: warning: unused function 'drwav_target_write_size_bytes' [-Wunused-function] 4676 | DRWAV_API drwav_uint64 drwav_target_write_size_bytes(const drwav_data_format* pFormat, drwav_uint64 totalFrameCount, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3900:27: warning: unused function 'drwav_take_ownership_of_metadata' [-Wunused-function] 3900 | DRWAV_API drwav_metadata* drwav_take_ownership_of_metadata(drwav* pWav) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5997:24: warning: unused function 'drwav_seek_to_pcm_frame' [-Wunused-function] 5997 | DRWAV_API drwav_bool32 drwav_seek_to_pcm_frame(drwav* pWav, drwav_uint64 targetFrameIndex) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6107:24: warning: unused function 'drwav_get_cursor_in_pcm_frames' [-Wunused-function] 6107 | DRWAV_API drwav_result drwav_get_cursor_in_pcm_frames(drwav* pWav, drwav_uint64* pCursor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6124:24: warning: unused function 'drwav_get_length_in_pcm_frames' [-Wunused-function] 6124 | DRWAV_API drwav_result drwav_get_length_in_pcm_frames(drwav* pWav, drwav_uint64* pLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6253:24: warning: unused function 'drwav_write_pcm_frames' [-Wunused-function] 6253 | DRWAV_API drwav_uint64 drwav_write_pcm_frames(drwav* pWav, drwav_uint64 framesToWrite, const void* pData) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7012:24: warning: unused function 'drwav_read_pcm_frames_s16le' [-Wunused-function] 7012 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16le(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7022:24: warning: unused function 'drwav_read_pcm_frames_s16be' [-Wunused-function] 7022 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16be(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7465:24: warning: unused function 'drwav_read_pcm_frames_f32le' [-Wunused-function] 7465 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32le(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7475:24: warning: unused function 'drwav_read_pcm_frames_f32be' [-Wunused-function] 7475 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32be(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7948:24: warning: unused function 'drwav_read_pcm_frames_s32le' [-Wunused-function] 7948 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32le(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7958:24: warning: unused function 'drwav_read_pcm_frames_s32be' [-Wunused-function] 7958 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32be(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5367:24: warning: unused function 'drwav_init_file_with_metadata' [-Wunused-function] 5367 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata(drwav* pWav, const char* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5379:24: warning: unused function 'drwav_init_file_with_metadata_w' [-Wunused-function] 5379 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata_w(drwav* pWav, const wchar_t* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5435:24: warning: 'static' function 'drwav_init_file_write' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 5435 | DRWAV_API drwav_bool32 drwav_init_file_write(drwav* pWav, const char* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5445:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames' [-Wunused-function] 5445 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames(drwav* pWav, const char* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5455:24: warning: unused function 'drwav_init_file_write_w' [-Wunused-function] 5455 | DRWAV_API drwav_bool32 drwav_init_file_write_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5465:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames_w' [-Wunused-function] 5465 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5635:24: warning: unused function 'drwav_init_memory_with_metadata' [-Wunused-function] 5635 | DRWAV_API drwav_bool32 drwav_init_memory_with_metadata(drwav* pWav, const void* data, size_t dataSize, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5675:24: warning: unused function 'drwav_init_memory_write' [-Wunused-function] 5675 | DRWAV_API drwav_bool32 drwav_init_memory_write(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5685:24: warning: unused function 'drwav_init_memory_write_sequential_pcm_frames' [-Wunused-function] 5685 | DRWAV_API drwav_bool32 drwav_init_memory_write_sequential_pcm_frames(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8213:24: warning: unused function 'drwav_open_and_read_pcm_frames_s16' [-Wunused-function] 8213 | DRWAV_API drwav_int16* drwav_open_and_read_pcm_frames_s16(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8234:18: warning: unused function 'drwav_open_and_read_pcm_frames_f32' [-Wunused-function] 8234 | DRWAV_API float* drwav_open_and_read_pcm_frames_f32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8255:24: warning: unused function 'drwav_open_and_read_pcm_frames_s32' [-Wunused-function] 8255 | DRWAV_API drwav_int32* drwav_open_and_read_pcm_frames_s32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8277:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16' [-Wunused-function] 8277 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8298:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32' [-Wunused-function] 8298 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8319:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32' [-Wunused-function] 8319 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8342:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16_w' [-Wunused-function] 8342 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8363:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32_w' [-Wunused-function] 8363 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8384:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32_w' [-Wunused-function] 8384 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8407:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 8407 | DRWAV_API drwav_int16* drwav_open_memory_and_read_pcm_frames_s16(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8428:18: warning: unused function 'drwav_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 8428 | DRWAV_API float* drwav_open_memory_and_read_pcm_frames_f32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8449:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s32' [-Wunused-function] 8449 | DRWAV_API drwav_int32* drwav_open_memory_and_read_pcm_frames_s32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8507:23: warning: unused function 'drwav_bytes_to_s32' [-Wunused-function] 8507 | DRWAV_API drwav_int32 drwav_bytes_to_s32(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8519:23: warning: unused function 'drwav_bytes_to_s64' [-Wunused-function] 8519 | DRWAV_API drwav_int64 drwav_bytes_to_s64(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ In file included from linearRegression.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1215:14: warning: 'static' function 'stbi_write_png' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1215 | STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:520:14: warning: 'static' function 'stbi_write_bmp' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 520 | STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:619:14: warning: 'static' function 'stbi_write_tga' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 619 | STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:794:14: warning: unused function 'stbi_write_hdr' [-Wunused-function] 794 | STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1616:14: warning: 'static' function 'stbi_write_jpg' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1616 | STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1231:14: warning: unused function 'stbi_write_png_to_func' [-Wunused-function] 1231 | STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:512:14: warning: unused function 'stbi_write_bmp_to_func' [-Wunused-function] 512 | STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:611:14: warning: unused function 'stbi_write_tga_to_func' [-Wunused-function] 611 | STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:787:14: warning: unused function 'stbi_write_hdr_to_func' [-Wunused-function] 787 | STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1607:14: warning: unused function 'stbi_write_jpg_to_func' [-Wunused-function] 1607 | STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:262:15: warning: unused function 'stbi_flip_vertically_on_write' [-Wunused-function] 262 | STBIWDEF void stbi_flip_vertically_on_write(int flag) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/prereqs.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/cereal/archives/json.hpp:68: /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:75:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 75 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:76:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 76 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:103:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 103 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:104:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:105:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 105 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:120:50: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 120 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:121:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 121 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:122:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 122 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:948:49: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 948 | s = g_deq_L12[ba*3 - 6 + b % 3]*(int)(1 << 21 >> b/3); | ~^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1218:40: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1218 | y *= g_expfrac[e & 3]*(1 << 30 >> (e >> 2)); | ~ ~~~~~~~~^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1311:50: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1311 | frac = (float)((x & 63) - sign) / ((x & ~63) + sign); | ~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1312:88: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1312 | return g_drmp3_pow43[16 + ((x + sign) >> 6)]*(1.f + frac*((4.f/3) + frac*(2.f/9)))*mult; | ~^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4579:65: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4579 | pcmFrameCountOutF = *pRunningPCMFrameCountFractionalPart + (pcmFrameCountIn / srcRatio); | ^~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4581:64: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4581 | *pRunningPCMFrameCountFractionalPart = pcmFrameCountOutF - pcmFrameCountOut; | ~ ^~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1739:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1739 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1744:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1744 | return ((drwav_uint16)data[1] << 0) | ((drwav_uint16)data[0] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:2189:78: warning: implicit conversion loses integer precision: 'drwav_uint64' (aka 'unsigned long long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 2189 | calculatedLoopCount = (pChunkHeader->sizeInBytes - DRWAV_SMPL_BYTES) / DRWAV_SMPL_LOOP_BYTES; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4679:104: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 4679 | drwav_uint64 targetDataSizeBytes = (drwav_uint64)((drwav_int64)totalFrameCount * pFormat->channels * pFormat->bitsPerSample/8.0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7163:27: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 7163 | *pOut++ = (float)((drwav_int64)sample / 9223372036854775807.0); | ^~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8483:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 8483 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4834:40: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4834 | *dest16 = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4839:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4839 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4845:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4845 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4846:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4846 | dest16[1] = (cur[2] << 8) | cur[3]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4847:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4847 | dest16[2] = (cur[4] << 8) | cur[5]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1325:18: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 1325 | bits[0] = val & ((1<(imageBuf, dimension, 1, | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_image.hpp:86:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | images.col(i) = arma::Mat(imageBuf, dimension, 1, | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load.hpp:30: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:443:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 443 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:513:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 513 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:481:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 481 | arma::fmat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:496:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | arma::Mat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), 75 | opts.Width() * opts.Channels()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:26: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:393:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 393 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:323:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 323 | dataFormat.channels = opts.Channels(); | ~ ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:324:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 324 | dataFormat.sampleRate = opts.SampleRate(); | ~ ~~~~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:325:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 325 | dataFormat.bitsPerSample = opts.BitsPerSample(); | ~ ~~~~~^~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:36: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:69: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:223:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 223 | int midWidth = static_cast(largestRatio * opts.Width()); | ~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:224:56: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 224 | int midHeight = static_cast(largestRatio * opts.Height()); | ~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:247:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 247 | int cropUpDownEqually = (nRowsCrop / 2) * opts.Channels() * midWidth; | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:7: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:37: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:42: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels.hpp:52: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels_impl.hpp:55:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | labels[i] = curLabel; | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding.hpp:67: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:53:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels[i] = curLabel; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:22: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:131:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | const size_t dimOffset = (row == 0) ? 0 : dimensionOffsets[row - 1]; | ~~~~~~~~~~~~~~~~ ~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:212:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 212 | testSize += floor(labelCount * testRatio); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:213:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 213 | trainSize += labelCount - floor(labelCount * testRatio); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks.hpp:226: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:29:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | rDiag(i) = -1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:31:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | rDiag(i) = 1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:33:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | rDiag(i) = 0; | ~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:39:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 39 | std::pow(M_PI, dimension / 2.0) / | ^~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel.hpp:116: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp:71:20: warning: implicit conversion loses integer precision: 'int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 71 | sub[j] = tolower(sub[j]); | ~ ^~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:27: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree.hpp:300: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree_impl.hpp:489:8: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 489 | if (!sigma) | ~^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split.hpp:85: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:183:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 183 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:184:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 184 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:218:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 218 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:219:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 219 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:314:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 314 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:323:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 323 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:461:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 461 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:470:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 470 | bestIndex = index; | ~ ^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp:59: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:51:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:56:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:98:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 98 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:103:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 103 | bestIndex = i; | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split.hpp:75: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:252:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 252 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:262:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 262 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:263:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 263 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:273:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 273 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:290:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 290 | bestIndexMinOverlapSplit = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:358:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 358 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:369:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 369 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:370:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 370 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:380:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 380 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:398:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 398 | bestIndexMinOverlapSplit = i; | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/is_spill_tree.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/spill_tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split_impl.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | snd = points[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:93:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | snd = points[i]; | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:64: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe.hpp:201: /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:93:16: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 93 | highFreq = sampleRate / 2.0f; | ^~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:95:63: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 95 | size_t lengthInSamples = static_cast(windowLength * sampleRate | ~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:97:60: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 97 | size_t stepsInSamples = static_cast(windowStep * sampleRate | ~ ^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1.hpp:106: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:43:35: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 43 | double precision = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:44:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 44 | double recall = double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:85:37: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | double precision = double(tp) / positivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:86:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 86 | double recall = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:78:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | arma::vec f1s = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:87:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | f1s(c) = (precision + recall == 0.0) ? 0.0 : | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:72:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec precisions = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score.hpp:77: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score_impl.hpp:41:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 41 | return totalSumSquared ? 1.0 : DBL_MIN; | ^~~~~~~~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:31: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | recalls(c) = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:72:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec recalls = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | recalls(c) = double(tp) / positiveLabels; | ~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score.hpp:56: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:74:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 74 | tpr /= numberOfTrueLabels; | ~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:75:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 75 | fpr /= numberOfFalseLabels; | ~~ ^~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score.hpp:104: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:45:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | size_t clusterLabel = labels(clusterLabels(j)); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (labels(i) != clusterLabel) { | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:63:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | sampleScores(i) = 0.0; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:65:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | sampleScores(i) = minInterClusterDistance - intraClusterDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:66:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | sampleScores(i) /= std::max( | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:102:33: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 102 | distance /= (numSameCluster - sameCluster); | ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv.hpp:321: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:259:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 259 | << "a score of " << evaluations(i) << "; ignoring when computing " | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:98: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:35:21: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 35 | width(100.0 / widthIn), | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:46: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:146:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 146 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:163:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 162 | output << "] " << progress << "% - ETA: " << (size_t) (stepTimer.toc() * | ~ 163 | (epochSize - step + 1)) % 60 << "s - loss: " << | ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:63: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:52: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:209:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 209 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:225:68: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:100: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:46: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:39: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~^~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:11: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp:156: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:206:30: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2, arma::op_max>>::value && resolves_to_vector, arma::op_max>>::yes, typename Op, arma::op_max>::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 206 | vertices = max(max(edges)) + 1; | ~ ~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:248:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | arma::vec edge = edges.col(i - 1); | ~~~ ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 287 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 288 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 287 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 304 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 305 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:340:13: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 340 | float m = NumConstraints(); | ~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:341:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 341 | float r = 0.5 + std::sqrt(0.25 + 2 * m); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:342:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 342 | if (ceil(r) > vertices) | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:343:9: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 343 | r = vertices; // An upper bound on the dimension. | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:349:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 349 | for (size_t i = 0; i < r; i++) | ^ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:355:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 355 | std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:22: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp:144: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:28:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:33:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | initialPoint(i) = -1.2; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:37:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | initialPoint(i) = 1; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:45:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | visitationOrder = arma::shuffle(arma::linspace>(0, n - 2, | ~~~~ 45 | n - 1)); | ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:59:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:97:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:32: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function.hpp:138: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 24 | visitationOrder(linspace>(0, n - 1, n)) | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:32:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | visitationOrder = shuffle(linspace>(0, n - 1, n)); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:48:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:38: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function.hpp:140: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:33:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:45:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:70:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:39: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function.hpp:74: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:24:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace>(0, NumFunctions() - 1, | ~~~~ 24 | NumFunctions())) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:30:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | visitationOrder = arma::shuffle(arma::linspace >(0, | ~~~~ 30 | (NumFunctions() - 1), NumFunctions())); | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:45:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:77:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:42: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function.hpp:139: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:25:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint(i) = 5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:32:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | initialPoint(i) = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:39:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:53:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:126:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 126 | double GetFinalObjective() const { return -39.16599 * n; } | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:143: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:30:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint[i] = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:36:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 36 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:50:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:78:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:62: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/maf/maf5_function.hpp:76:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | a(a), | ~^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:124:16: warning: unused variable 'result' [-Wunused-variable] 124 | const bool result = Optimize(function, coordinates, this->deprecatedLambda, | ^~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:116: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ^~~~~~~~~~~~ ~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:169:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 169 | (batchSize * gradientNorm)) / v; | ^~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:119: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes.hpp:179: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 114 | currentLargeLambda / defaultLambda, u * u)); | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ~ 114 | currentLargeLambda / defaultLambda, u * u)); | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:113:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ^~~~~~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:121: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne.hpp:208: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:36: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:186:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 186 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:189:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 189 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:122: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de.hpp:148: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:105:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 105 | l = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | m = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_classic.hpp:52:48: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | typename MatType::elem_type gamma = 2.0 / (numIter + 2.0); | ^~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:130: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search.hpp:71: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search_impl.hpp:77:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | for (size_t j = 0; j < numCategories(i); ++j) | ~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:135: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea.hpp:485: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:308:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 308 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:310:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 310 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:570:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | indexes = arma::linspace>(0, front.size() - 1, front.size()); | ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:749:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:760:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 760 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:136: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead.hpp:357: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead_impl.hpp:300:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 300 | const size_t idx = idxShuffle(i); | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:137: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2.hpp:382: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:302:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 302 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:304:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 304 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:139: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp:16: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ^~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:153: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:76:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | er *= multFactor; | ~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:35: warning: implicit conversion turns floating-point number into integer: '__promote_t' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 83 | snapshotEpochs - snapshots + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to '__promote_t' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ^~~~~~~~~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:157: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa.hpp:137: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa_impl.hpp:34:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 34 | ak(0.001 * maxIterations), | ~ ^~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:351: /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:96:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | arma::Row numCategories(datasetInfo.Dimensionality()); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:99:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | numCategories[d] = datasetInfo.NumMappings(d); | ~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron.hpp:246: /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:251:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | if (maxIndexRow != labels(0, j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:255:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | tempLabel = labels(0, j); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:72:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:107:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:115:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:116:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:127:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:128:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:129:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:145:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 145 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:165:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:169:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:170:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:174:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:175:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:183:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:41:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:203:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 203 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:132:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 132 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:138:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:158:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:81:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | totalLeftWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:88:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | totalRightWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:113:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | totalLeftWeight += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:114:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | totalRightWeight -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp:160: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:65:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | leftWeights.set_size(leftLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:213:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 213 | rightWeights.set_size(rightLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:49:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | arma::umat categoryCounts(numCategories, 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:50:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | arma::vec categoryP(numCategories); | ~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:62:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:91:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:92:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:93:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:95:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 95 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:94:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:96:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:111:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | arma::uvec categories(numCategories); | ~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:116:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::mat classWeightSums = arma::zeros(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:130:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | = arma::zeros>(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:173:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | arma::vec categoryResponse(numCategories); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:174:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | arma::uvec categoryCounts(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:188:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:217:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 217 | splitInfo.set_size(numCategories + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:218:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 218 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:219:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:221:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 221 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:220:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:222:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 222 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:267:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 267 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:275:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 275 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:280:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:294:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 294 | categories[k] = 1; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:359:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 359 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:367:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:372:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:386:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 386 | categories[k] = 1; | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:45:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | values.set_size(numDimensions + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:55:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | value = RandInt(dimensions); | ~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:61:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (values[j] == value) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:69:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | values[i] = value; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:72:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | values[numDimensions] = std::numeric_limits::max(); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:88:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | return values[++i]; | ~~~~~~ ^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/random_dimension_select.hpp:32:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 32 | size_t Begin() const { return RandInt(dimensions); } | ~~~~~~~ ^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1053:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1053 | arma::vec v = probabilities.unsafe_col(i); // Alias of column. | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:609: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor.hpp:527: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:688:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 688 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:705:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 705 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:722:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 722 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:749:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:850:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 850 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:859:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 859 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:876:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 876 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:903:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:301: /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:435:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 435 | if (k == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:450:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 450 | if (k == labels(j)) | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add.hpp:94: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 52 | sizeA = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:53:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 53 | sizeB = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:37:63: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | arma::field vecInput = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:38:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | arma::field vecLabels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:44:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | arma::vec weights(bitLen - 1); | ~~~~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:58:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~ 58 | sizeA + sizeB + 1, DistrParam(0, 1)); | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:57:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:122:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | input.set_size(fieldInput(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:123:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | labels.set_size(fieldLabels(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:32: warning: implicit conversion turns floating-point number into integer: 'const double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 140 | size_t val = input.at(i).at(j); | ~~~ ~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:138:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | for (size_t j = 0; j < input.at(i).n_elem; ++j) | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy.hpp:96: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:67:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | size = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:52:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:53:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:59:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | arma::vec weights(maxLength - 1); | ~~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:70:7: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | arma::colvec vecInput = randi( | ~~~~~ 70 | size, DistrParam(0, 1)); | ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:72:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | repmat(vecInput, nRepeats, 1)); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:75:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | input(i).col(0).rows(0, vecInput.n_elem - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:78:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | input(i).at(vecInput.n_elem, 0) = 0.5; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:80:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | ones(totSize - vecInput.n_elem - addSeparator); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:96:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | input = zeros(fieldInput(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:97:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | labels = zeros(fieldLabels(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score_impl.hpp:47:12: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 47 | score /= testSize; | ~~ ^~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 69 | val += input(i).at(k, j); | ~~~~^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:50:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:51:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:58:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 58 | size = RandInt(2, maxLength+1); | ~~~~~~~ ~~~~~~~~~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:62:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::colvec vals(size); | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:71:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | vals[j] = val; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:78:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | labels(i) = itemAns; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:90:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | sepInput.at(ptr, 0) = 0.5; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:93:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | input(i) = sepInput; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:38: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/nguyen_widrow_init.hpp:80:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 80 | double beta = 0.7 * std::pow(cols, 1.0 / rows); | ~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:34: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/models.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny.hpp:274: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny_impl.hpp:210:16: warning: unused variable 'numClasses' [-Wunused-variable] 210 | const size_t numClasses = classNames.size(); | ^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn.hpp:114: /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:135:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 135 | const size_t tableIndex = tableLocations[p.second]; | ~~~~~~~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:148:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 148 | tableLocations[p.second]++; | ~~~~~~~~~~~~~~ ~~^~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:229:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:270:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 270 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap.hpp:65: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:23: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:943:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 943 | effectiveError /= numCases; | ~~ ^~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t itemNum = max(data.row(1)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | itemMean(item) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(item) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | itemMean = arma::vec(itemNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(itemNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t item = combinations(1, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t userNum = max(data.row(0)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | userMean(user) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(user) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | userMean = arma::vec(userNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(userNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t user = combinations(0, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:106:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:56: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:103:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:112:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:199:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:201:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:200:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 200 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:208:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | ratingError * parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:210:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | ratingError * parameters.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:231:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 231 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:298:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:297:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 297 | double ratingError = rating - dot(iterate.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:303:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 303 | ratingError * iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:302:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 302 | arma::mat userUpdate = stepSize * (lambda * iterate.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:305:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | ratingError * iterate.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:304:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | arma::mat itemUpdate = stepSize * (lambda * iterate.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:99:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:109:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:108:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:381:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 381 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:340:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:346:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:347:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:348:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 348 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:375:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 375 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:376:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 376 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:518:42: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 518 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:406:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 405 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 406 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:482:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 482 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:483:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 483 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:484:68: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 484 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:511:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 511 | arma::Col implicitItems(implicitCount); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:512:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 512 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:513:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 513 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:517:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 517 | itemImplicitUpdate.col(implicitIndex) = | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:522:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 522 | implicitItems(implicitIndex) = it.row(); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:110:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:128:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:129:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:138:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:140:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | rating = w * userVec + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:23: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/interpolation_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:54: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:116:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::vec constant(neighborNum); | ~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:118:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | arma::vec userRating(cleanedData.col(queryUser)); | ~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:29: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:15: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:41: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:25: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:168:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | if (constant(i) == 0) | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:169:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | constant(i) = std::numeric_limits::min(); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:11: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:198:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 198 | recommendations.set_size(numRecs, users.n_elem); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:199:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | arma::mat values(numRecs, users.n_elem); | ~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:223:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 223 | ratings += weights(j) * neighborRatings; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:266:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 266 | << "for user " << users(i) << " (not enough un-rated items)!" | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:379:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 379 | predictions(ordering[i]) = rating; | ~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:53: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:41:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | parent[i] = i; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:42:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | rank[i] = 0; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:57:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | if (parent[x] == x) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:65:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | return parent[x]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:91:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | parent[yRoot] = xRoot; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:95:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | parent[xRoot] = yRoot; | ~~~~~~ ^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/random_point_selection.hpp:42:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 42 | const size_t index = RandInt(max); | ~~~~~~~ ^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree.hpp:361: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils.hpp:147: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:31:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | arma::Mat table(numLeaves, (numClasses + 1)); | ~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:38:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | const size_t label = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:78:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | if (imps[i] > max) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:79:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | max = imps[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:124:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:179:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 179 | arma::vec regularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:215:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | cvOldFromNew[i] = i; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:224:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 224 | arma::vec cvRegularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:273:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 273 | - (long double) regularizationConstants[i]; | ~~~~~~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:290:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 290 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (ratios[i] > 1.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:50:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (ratios[i] < 0.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:87:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | distribution[p] = minDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:88:40: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 88 | ((clusterCounts[maxVarCluster] + 1) * variances[maxVarCluster] - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:87:39: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | variances[maxVarCluster] = (1.0 / clusterCounts[maxVarCluster]) * | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:50:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (assignments[i] == maxVarCluster) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:69:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | clusterCounts[emptyCluster]++; | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:71:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | assignments[furthestPoint] = emptyCluster; | ~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:74:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | variances[emptyCluster] = 0; | ~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:23: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 155 | variances[i] /= clusterCounts[i]; | ~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | if (clusterCounts[i] <= 1) | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:153:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | variances[i] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:60:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | newCentroids.shed_col(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:61:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | clusterCounts.shed_row(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | newCentroids.col(i) /= counts(i); | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:29: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans.hpp:173: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp:179:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 179 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans.hpp:66: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans_impl.hpp:165:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 165 | newCentroids.col(c) /= counts[c]; | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:31: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans.hpp:64: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp:141:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 141 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp:70:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:31: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 194 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:29: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 298 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:217: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:106:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:327: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:36:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 36 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:33:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:67:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:87:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:141:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:171:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:185:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:211:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | double newProb = LogProbability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:215:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:235:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 235 | arma::mat logLikelihoods(gaussians, data.n_cols); | ~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:246:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | loglikelihood += AccuLog(logLikelihoods.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:295:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 295 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:380:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:330: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm.hpp:326: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:66:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:120:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 120 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:117:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:150:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:170:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:219:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:246:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:255:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:276:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 276 | double newProb = Probability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:280:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:296:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | arma::mat likelihoods(gaussians, observations.n_cols); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:307:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 307 | if (accu(likelihoods.col(j)) == 0) | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:310:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 310 | logLikelihood += std::log(accu(likelihoods.col(j))); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:367:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:44: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm.hpp:549: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:507:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 507 | stateSeqBack(state, 0) = state; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:546:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long' [-Wfloat-conversion] 545 | stateSeq[dataSeq.n_cols - t] = | ~ 546 | stateSeqBack(stateSeq[dataSeq.n_cols - t + 1], dataSeq.n_cols - t + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 32 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 33 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:46:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:54:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:63:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | impurity -= ((double) splitCounts[i] / (double) numElem) * | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 38 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 39 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:52:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:61:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:71:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | gain += ((double) splitCounts[i] / (double) numElem) * splitGain; | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:573: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1210:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1210 | size_t currentIndex = counts[direction]; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1212:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1212 | counts[direction]++; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1221:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1221 | if (counts[i] == 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1244:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1244 | for (size_t j = 0; j < counts[i]; ++j) | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde.hpp:362: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_impl.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules.hpp:229: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:233:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 233 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:448:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 448 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/naive_method.hpp:83:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 83 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/ordered_selection.hpp:35:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | return arma::linspace >(0, m - 1, m); | ~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:33:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::Col selectedPoints(m); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:35:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | selectedPoints(i) = RandInt(0, data.n_cols); | ~~~~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:73:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:51: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm.hpp:467: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:315:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 315 | return (double) 100.0 * count / labels.n_elem; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:55: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search.hpp:483: /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:789:24: warning: implicit conversion loses floating-point precision: 'double' to 'const float' [-Wimplicit-float-conversion] 789 | const float cutoff = 0.1; | ~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:828:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 828 | refPointsConsideredSmall.zeros(maxNumPoints); | ~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:56: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion.hpp:146: /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:123:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 123 | if (ceil(r) > mpn) | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:124:9: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 124 | r = mpn; // An upper bound on the dimension. | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:125:10: warning: implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 125 | return ceil(r); | ~~~~~~ ^~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier.hpp:296: /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:103:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:133:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:146:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:334:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:385:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 385 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:475:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 475 | arma::vec probs = probabilities.unsafe_col(i); | ~~~~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:68:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:70:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:73:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:75:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:67:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:69:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:72:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:74:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:188:39: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 188 | else if (state.Row() == fruitTree.Depth()) | ~~ ~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:228:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat branches = zeros(rewardSize, (size_t) std::pow(2, depth - 1)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:241:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | return tree.col(GetIndex(state)); | ~~~ ^~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/policy.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/greedy_policy.hpp:53:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 53 | delta(((initialEpsilon - minEpsilon) * decayRate) / annealInterval) | ~ ^~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/replay.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/prioritized_replay.hpp:204:57: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 204 | const double mass = arma::randu() * sumPerRange + bt * sumPerRange; | ^~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/noise.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/gaussian.hpp:48:40: warning: implicit conversion turns floating-point number into integer: 'const double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 48 | return sigma * randn(size) + mu; | ~~~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning.hpp:188: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:282:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 282 | projDist(l(j, batchNo), batchNo) += projDistUpper(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:283:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 283 | projDist(u(j, batchNo), batchNo) += projDistLower(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:74: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression.hpp:355: /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression_impl.hpp:251:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 251 | return (count * 100.0) / predictions.n_elem; | ^~~~~ ~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp:167: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:62:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | parameters.row(2 * hiddenSize).zeros(); | ~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:63:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | parameters.col(visibleSize).zeros(); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:217: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ loadDefaultPrediction.cpp:44:19: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'typename storage_type<14>::type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 44 | R(i, 3) = truePos; | ~ ^~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:27: note: in instantiation of function template specialization 'arma::linspace>' requested here 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:21: note: in instantiation of function template specialization 'arma::linspace>' requested here 24 | visitationOrder(linspace>(0, n - 1, n)) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:59: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:183:17: note: in instantiation of function template specialization 'ens::Proximal::ProjectToL1Ball>' requested here 183 | Proximal::ProjectToL1Ball(currentCoeffs, tau); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:50: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~~~~~~~~~~ ^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:50: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename Gen, arma::gen_ones>::elem_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 79 | arma::ones(numObservations) / numObservations)) | ~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:47:30: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::DiscreteDistribution' requested here 47 | DiscreteDistribution<> d(1); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | arma::ones(numObservations) / numObservations)) | ~~~~ ^~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:29:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | ObsVecType result(dimension); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:21: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::Random' requested here 52 | sizeA = 2 + d.Random()(0); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:40:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | if ((sumProb += probabilities[d][obs]) >= randObs) | ~~~~~~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:42:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | result[d] = ObsType(obs); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:50:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | result[d] = ObsType(probabilities[d].n_elem - 1); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:200:34: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::Evaluate' requested here 200 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:73:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:82:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:83:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:54:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 54 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:55:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 55 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:27:3: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Mat>' requested here 27 | MakeAlias(data, dataIn, dataIn.n_rows, dataIn.n_cols, false); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:173:34: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::Evaluate' requested here 173 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 68 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:72:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:74:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:73:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:78:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:79:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:42:37: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::RegularizedSVDFunction' requested here 42 | RegularizedSVDFunction rSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:308:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::Evaluate' requested here 308 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:82:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::vec implicitVecsNormSquare(numItems); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 88 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:93:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:99:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:128:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:129:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:83:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::CleanData' requested here 83 | svdpp.CleanData(implicitDenseData, implicitData, data); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:102:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 102 | values(i) = 1; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:70:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ 70 | numUsers + 2 * numItems - 1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~~~~~^~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:34:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 34 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:51:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::SVDPlusPlusFunction' requested here 51 | SVDPlusPlusFunction svdPPFunc(data, cleanedData, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:35:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 35 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:19: note: in instantiation of function template specialization 'mlpack::HRectBound<>::operator|=>' requested here 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:117:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:138:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | while (SplitType::AssignToLeftNode(data.col(left), splitInfo) && | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:146:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:116:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | return point[splitInfo.splitDimension] < splitInfo.splitVal; | ~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:22: note: in instantiation of function template specialization 'mlpack::MidpointSplit>::AssignToLeftNode>' requested here 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:158:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | center.set_size(dim); | ~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:522:58: note: in instantiation of member function 'mlpack::HRectBound<>::Center' requested here 522 | void Center(arma::Col& center) const { bound.Center(center); } | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1069:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::Center' requested here 1069 | Center(center); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:161:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 161 | center(i) = bounds[i].Mid(); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:490:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 490 | neighborPtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:491:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 491 | distancePtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:592:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 592 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:593:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 593 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:23: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:24: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:615:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 615 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:616:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 616 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:633:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 633 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:97:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | referenceSet.col(referenceIndex)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:505:17: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::BaseCase' requested here 505 | rules.BaseCase(i, j); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:96:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double dist = distance.Evaluate(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:509:13: note: in instantiation of function template specialization 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetResults' requested here 509 | rules.GetResults(*neighborPtr, *distancePtr); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:61: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:211:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | lower = bounds[d].Lo() - point[d]; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:490:18: note: in instantiation of function template specialization 'mlpack::HRectBound<>::MinDistance>' requested here 490 | return bound.MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort_impl.hpp:55:25: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::MinDistance>' requested here 55 | return referenceNode->MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:24: note: in instantiation of function template specialization 'mlpack::NearestNS::BestPointToNodeDistance, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>' requested here 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:212:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | higher = point[d] - bounds[d].Hi(); | ~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:158:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | return SortPolicy::GetBestChild(querySet.col(queryIndex), referenceNode); | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp:38:27: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetBestChild' requested here 38 | size_t bestChild = rule.GetBestChild(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:571:19: note: in instantiation of member function 'mlpack::GreedySingleTreeTraverser, mlpack::NeighborSearchStat>, mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 571 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:38:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 38 | MakeAlias(const_cast(this->ratios), ratios, ratios.n_elem); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:58:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:32:22: note: in instantiation of member function 'mlpack::GaussianDistribution<>::GaussianDistribution' requested here 32 | dists(gaussians, GaussianDistribution<>(dimensionality)), | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:200: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution_impl.hpp:85:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * v(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:68:18: note: in instantiation of member function 'mlpack::GaussianDistribution<>::LogProbability' requested here 68 | dists[i].LogProbability(observation)); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:93:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 93 | MakeAlias(temp, logProb, observation.n_cols, logProb.n_rows * i); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:53:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:116:5: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::DiagonalGaussianDistribution' requested here 116 | DiagonalGaussianDistribution<>(dimensionality)), | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:54:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | covariance(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:55:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | invCov(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:55:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 55 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * logExponent(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:151:18: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 151 | dists[i].LogProbability(observation)); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:73:29: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:177:14: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 177 | dists[i].LogProbability(observation, temp); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:10: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:41:5: note: in instantiation of member function 'ens::SDP>::SDP' requested here 41 | sdp(initialPoint.n_rows, numSparseConstraints, numDenseConstraints), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:25:5: note: in instantiation of member function 'ens::LRSDPFunction>>::LRSDPFunction' requested here 25 | function(numSparseConstraints, numDenseConstraints, initialPoint), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:5: note: in instantiation of member function 'ens::LRSDP>>::LRSDP' requested here 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:7: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:46:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | sparseB(numSparseConstraints), | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:48:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | denseB(numDenseConstraints) | ~~~~~~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:126: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:39:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | typename ForwardType::bvec lambda(function.NumConstraints()); | ~~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:159:16: warning: implicit conversion turns floating-point number into integer: 'typename Mat::elem_type' (aka 'double') to 'bool' [-Wfloat-conversion] 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:211:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | augfunc.Lambda()[i] -= ElemType(augfunc.Sigma()) * p; | ~~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:92:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | SDP().SparseB()[index]; | ~~~ ^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:139:42: note: in instantiation of function template specialization 'ens::LRSDPFunction>>::EvaluateConstraint>' requested here 139 | const ElemType p = std::pow(function.EvaluateConstraint(i, coordinates), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:98:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | - SDP().DenseB()[index1]; | ~~~ ^~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:214:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 214 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:216:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 216 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:244:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 244 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:247:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 247 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:460:30: note: in instantiation of function template specialization 'ens::L_BFGS::ChooseScalingFactor, arma::Cube>' requested here 460 | ElemType scalingFactor = ChooseScalingFactor(itNum, gradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:151:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 151 | BaseColType rho(numBasis); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:477:5: note: in instantiation of function template specialization 'ens::L_BFGS::SearchDirection, arma::Cube>' requested here 477 | SearchDirection(gradient, itNum, scalingFactor, s, y, searchDirection); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:152:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | BaseColType alpha(numBasis); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:163:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 163 | rho[iterationNum - i] = (tmp != ElemType(0)) ? (1 / tmp) : 1; | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:168:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | searchDirection -= alpha[iterationNum - i] * yMat; | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:176:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | ElemType beta = rho[iterationNum - i - 1] * | ~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:178:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | searchDirection += (alpha[iterationNum - i - 1] - beta) * | ~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:516:5: note: in instantiation of function template specialization 'ens::L_BFGS::UpdateBasisSet, arma::Mat, arma::Cube>' requested here 516 | UpdateBasisSet(itNum, iterate, oldIterate, gradient, oldGradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ loadDefaultPrediction.cpp:41:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 41 | R(i, 0) = ComputePrecision(truePos, falsePos); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | train.set_size(input.n_rows, trainSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:316:5: note: in instantiation of function template specialization 'mlpack::SplitHelper>' requested here 316 | SplitHelper(input, trainData, testData, testRatio, order); | ^ loadDefaultPrediction.cpp:91:5: note: in instantiation of function template specialization 'mlpack::Split, arma::Row, void, void>' requested here 91 | Split(loanDataFeatures, targets, Xtrain, Xtest, Ytrain, Ytest, pct); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:40:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | test.set_size(input.n_rows, testSize); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:46:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | train = input.cols(order.subvec(0, trainSize - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:49:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | test = input.cols(order.subvec(trainSize, order.n_elem - 1)); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:55:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | train = input.cols(0, trainSize - 1); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:58:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | test = input.cols(trainSize, input.n_cols - 1); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | train.set_size(input.n_rows, trainSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:317:5: note: in instantiation of function template specialization 'mlpack::SplitHelper>' requested here 317 | SplitHelper(inputLabel, trainLabel, testLabel, testRatio, order); | ^ loadDefaultPrediction.cpp:91:5: note: in instantiation of function template specialization 'mlpack::Split, arma::Row, void, void>' requested here 91 | Split(loanDataFeatures, targets, Xtrain, Xtest, Ytrain, Ytest, pct); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:40:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | test.set_size(input.n_rows, testSize); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:46:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | train = input.cols(order.subvec(0, trainSize - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:49:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | test = input.cols(order.subvec(trainSize, order.n_elem - 1)); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:55:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | train = input.cols(0, trainSize - 1); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:58:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | test = input.cols(trainSize, input.n_cols - 1); | ~~~~ ^~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:89:3: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Train, arma::Row>' requested here 89 | Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, | ^ loadDefaultPrediction.cpp:105:18: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::DecisionTree, arma::Row>' requested here 105 | DecisionTree dt(Xtrain, Ytrain, 2); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:878:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments[j - begin] = NumericSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:826:47: note: in instantiation of function template specialization 'mlpack::GiniGain::Evaluate, arma::Row>' requested here 826 | double bestGain = FitnessFunction::template Evaluate( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:89:3: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Train, arma::Row>' requested here 89 | Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, | ^ loadDefaultPrediction.cpp:105:18: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::DecisionTree, arma::Row>' requested here 105 | DecisionTree dt(Xtrain, Ytrain, 2); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:166:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:170:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:171:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:175:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:177:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:184:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:838:11: note: in instantiation of function template specialization 'mlpack::BestBinaryNumericSplit::SplitIfBetter, arma::Row>' requested here 838 | SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:89:3: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Train, arma::Row>' requested here 89 | Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, | ^ loadDefaultPrediction.cpp:105:18: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::DecisionTree, arma::Row>' requested here 105 | DecisionTree dt(Xtrain, Ytrain, 2); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:158:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:157:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:164:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:167:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:178:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:177:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:185:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:188:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:270:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 270 | classProbabilities(numClasses) | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:912:33: note: in instantiation of member function 'mlpack::DecisionTree<>::DecisionTree' requested here 912 | DecisionTree* child = new DecisionTree(); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:89:3: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Train, arma::Row>' requested here 89 | Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, | ^ loadDefaultPrediction.cpp:105:18: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::DecisionTree, arma::Row>' requested here 105 | DecisionTree dt(Xtrain, Ytrain, 2); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1145:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1145 | classProbabilities.zeros(numClasses); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:938:5: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::CalculateClassProbabilities, arma::Row>' requested here 938 | CalculateClassProbabilities( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:89:3: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Train, arma::Row>' requested here 89 | Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, | ^ loadDefaultPrediction.cpp:105:18: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::DecisionTree, arma::Row>' requested here 105 | DecisionTree dt(Xtrain, Ytrain, 2); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1156:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1156 | classProbabilities[labels[i]]++; | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1156:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1156 | classProbabilities[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1053:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1053 | arma::vec v = probabilities.unsafe_col(i); // Alias of column. | ~~~~~~~~~~ ^ loadDefaultPrediction.cpp:109:8: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Classify>' requested here 109 | dt.Classify(Xtest, output, probs); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1054:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1054 | Classify(data.col(i), predictions[i], v); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1054:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1054 | Classify(data.col(i), predictions[i], v); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1103:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1103 | return CategoricalSplit::CalculateDirection(point[splitDimension], | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:991:12: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::CalculateDirection>' requested here 991 | children[CalculateDirection(point)]->Classify(point, prediction, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1054:5: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Classify>' requested here 1054 | Classify(data.col(i), predictions[i], v); | ^ loadDefaultPrediction.cpp:109:8: note: in instantiation of function template specialization 'mlpack::DecisionTree<>::Classify>' requested here 109 | dt.Classify(Xtest, output, probs); | ^ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1106:51: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1106 | return NumericSplit::CalculateDirection(point[splitDimension], | ~~~~~ ^~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:587:16: warning: unused function 'drmp3_version' [-Wunused-function] 587 | DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:602:23: warning: unused function 'drmp3_version_string' [-Wunused-function] 602 | DRMP3_API const char* drmp3_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:2388:16: warning: unused function 'drmp3dec_f32_to_s16' [-Wunused-function] 2388 | DRMP3_API void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, size_t num_samples) | ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4057:24: warning: unused function 'drmp3_init_file_w' [-Wunused-function] 4057 | DRMP3_API drmp3_bool32 drmp3_init_file_w(drmp3* pMP3, const wchar_t* pFilePath, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4526:24: warning: 'static' function 'drmp3_get_pcm_frame_count' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 4526 | DRMP3_API drmp3_uint64 drmp3_get_pcm_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4560:24: warning: unused function 'drmp3_get_mp3_frame_count' [-Wunused-function] 4560 | DRMP3_API drmp3_uint64 drmp3_get_mp3_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4591:24: warning: unused function 'drmp3_calculate_seek_points' [-Wunused-function] 4591 | DRMP3_API drmp3_bool32 drmp3_calculate_seek_points(drmp3* pMP3, drmp3_uint32* pSeekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4731:24: warning: unused function 'drmp3_bind_seek_table' [-Wunused-function] 4731 | DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4890:18: warning: unused function 'drmp3_open_and_read_pcm_frames_f32' [-Wunused-function] 4890 | DRMP3_API float* drmp3_open_and_read_pcm_frames_f32(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4900:24: warning: unused function 'drmp3_open_and_read_pcm_frames_s16' [-Wunused-function] 4900 | DRMP3_API drmp3_int16* drmp3_open_and_read_pcm_frames_s16(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4911:18: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 4911 | DRMP3_API float* drmp3_open_memory_and_read_pcm_frames_f32(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4921:24: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 4921 | DRMP3_API drmp3_int16* drmp3_open_memory_and_read_pcm_frames_s16(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4933:18: warning: unused function 'drmp3_open_file_and_read_pcm_frames_f32' [-Wunused-function] 4933 | DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4943:24: warning: unused function 'drmp3_open_file_and_read_pcm_frames_s16' [-Wunused-function] 4943 | DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1476:16: warning: unused function 'drwav_version' [-Wunused-function] 1476 | DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1491:23: warning: unused function 'drwav_version_string' [-Wunused-function] 1491 | DRWAV_API const char* drwav_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3019:24: warning: unused function 'drwav_fmt_get_format' [-Wunused-function] 3019 | DRWAV_API drwav_uint16 drwav_fmt_get_format(const drwav_fmt* pFMT) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3891:24: warning: unused function 'drwav_init_with_metadata' [-Wunused-function] 3891 | DRWAV_API drwav_bool32 drwav_init_with_metadata(drwav* pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4636:24: warning: unused function 'drwav_init_write' [-Wunused-function] 4636 | DRWAV_API drwav_bool32 drwav_init_write(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4654:24: warning: unused function 'drwav_init_write_sequential_pcm_frames' [-Wunused-function] 4654 | DRWAV_API drwav_bool32 drwav_init_write_sequential_pcm_frames(drwav* pWav, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, drwav_write_proc onWrite, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4663:24: warning: unused function 'drwav_init_write_with_metadata' [-Wunused-function] 4663 | DRWAV_API drwav_bool32 drwav_init_write_with_metadata(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4676:24: warning: unused function 'drwav_target_write_size_bytes' [-Wunused-function] 4676 | DRWAV_API drwav_uint64 drwav_target_write_size_bytes(const drwav_data_format* pFormat, drwav_uint64 totalFrameCount, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3900:27: warning: unused function 'drwav_take_ownership_of_metadata' [-Wunused-function] 3900 | DRWAV_API drwav_metadata* drwav_take_ownership_of_metadata(drwav* pWav) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5997:24: warning: unused function 'drwav_seek_to_pcm_frame' [-Wunused-function] 5997 | DRWAV_API drwav_bool32 drwav_seek_to_pcm_frame(drwav* pWav, drwav_uint64 targetFrameIndex) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6107:24: warning: unused function 'drwav_get_cursor_in_pcm_frames' [-Wunused-function] 6107 | DRWAV_API drwav_result drwav_get_cursor_in_pcm_frames(drwav* pWav, drwav_uint64* pCursor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6124:24: warning: unused function 'drwav_get_length_in_pcm_frames' [-Wunused-function] 6124 | DRWAV_API drwav_result drwav_get_length_in_pcm_frames(drwav* pWav, drwav_uint64* pLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6253:24: warning: unused function 'drwav_write_pcm_frames' [-Wunused-function] 6253 | DRWAV_API drwav_uint64 drwav_write_pcm_frames(drwav* pWav, drwav_uint64 framesToWrite, const void* pData) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7012:24: warning: unused function 'drwav_read_pcm_frames_s16le' [-Wunused-function] 7012 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16le(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7022:24: warning: unused function 'drwav_read_pcm_frames_s16be' [-Wunused-function] 7022 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16be(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7465:24: warning: unused function 'drwav_read_pcm_frames_f32le' [-Wunused-function] 7465 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32le(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7475:24: warning: unused function 'drwav_read_pcm_frames_f32be' [-Wunused-function] 7475 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32be(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7948:24: warning: unused function 'drwav_read_pcm_frames_s32le' [-Wunused-function] 7948 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32le(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7958:24: warning: unused function 'drwav_read_pcm_frames_s32be' [-Wunused-function] 7958 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32be(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5367:24: warning: unused function 'drwav_init_file_with_metadata' [-Wunused-function] 5367 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata(drwav* pWav, const char* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5379:24: warning: unused function 'drwav_init_file_with_metadata_w' [-Wunused-function] 5379 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata_w(drwav* pWav, const wchar_t* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5435:24: warning: 'static' function 'drwav_init_file_write' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 5435 | DRWAV_API drwav_bool32 drwav_init_file_write(drwav* pWav, const char* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5445:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames' [-Wunused-function] 5445 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames(drwav* pWav, const char* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5455:24: warning: unused function 'drwav_init_file_write_w' [-Wunused-function] 5455 | DRWAV_API drwav_bool32 drwav_init_file_write_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5465:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames_w' [-Wunused-function] 5465 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5635:24: warning: unused function 'drwav_init_memory_with_metadata' [-Wunused-function] 5635 | DRWAV_API drwav_bool32 drwav_init_memory_with_metadata(drwav* pWav, const void* data, size_t dataSize, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5675:24: warning: unused function 'drwav_init_memory_write' [-Wunused-function] 5675 | DRWAV_API drwav_bool32 drwav_init_memory_write(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5685:24: warning: unused function 'drwav_init_memory_write_sequential_pcm_frames' [-Wunused-function] 5685 | DRWAV_API drwav_bool32 drwav_init_memory_write_sequential_pcm_frames(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8213:24: warning: unused function 'drwav_open_and_read_pcm_frames_s16' [-Wunused-function] 8213 | DRWAV_API drwav_int16* drwav_open_and_read_pcm_frames_s16(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8234:18: warning: unused function 'drwav_open_and_read_pcm_frames_f32' [-Wunused-function] 8234 | DRWAV_API float* drwav_open_and_read_pcm_frames_f32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8255:24: warning: unused function 'drwav_open_and_read_pcm_frames_s32' [-Wunused-function] 8255 | DRWAV_API drwav_int32* drwav_open_and_read_pcm_frames_s32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8277:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16' [-Wunused-function] 8277 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8298:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32' [-Wunused-function] 8298 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8319:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32' [-Wunused-function] 8319 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8342:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16_w' [-Wunused-function] 8342 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8363:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32_w' [-Wunused-function] 8363 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8384:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32_w' [-Wunused-function] 8384 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8407:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 8407 | DRWAV_API drwav_int16* drwav_open_memory_and_read_pcm_frames_s16(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8428:18: warning: unused function 'drwav_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 8428 | DRWAV_API float* drwav_open_memory_and_read_pcm_frames_f32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8449:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s32' [-Wunused-function] 8449 | DRWAV_API drwav_int32* drwav_open_memory_and_read_pcm_frames_s32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8507:23: warning: unused function 'drwav_bytes_to_s32' [-Wunused-function] 8507 | DRWAV_API drwav_int32 drwav_bytes_to_s32(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8519:23: warning: unused function 'drwav_bytes_to_s64' [-Wunused-function] 8519 | DRWAV_API drwav_int64 drwav_bytes_to_s64(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ In file included from loadDefaultPrediction.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1215:14: warning: 'static' function 'stbi_write_png' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1215 | STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:520:14: warning: 'static' function 'stbi_write_bmp' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 520 | STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:619:14: warning: 'static' function 'stbi_write_tga' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 619 | STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:794:14: warning: unused function 'stbi_write_hdr' [-Wunused-function] 794 | STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1616:14: warning: 'static' function 'stbi_write_jpg' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1616 | STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1231:14: warning: unused function 'stbi_write_png_to_func' [-Wunused-function] 1231 | STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:512:14: warning: unused function 'stbi_write_bmp_to_func' [-Wunused-function] 512 | STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:611:14: warning: unused function 'stbi_write_tga_to_func' [-Wunused-function] 611 | STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:787:14: warning: unused function 'stbi_write_hdr_to_func' [-Wunused-function] 787 | STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1607:14: warning: unused function 'stbi_write_jpg_to_func' [-Wunused-function] 1607 | STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:262:15: warning: unused function 'stbi_flip_vertically_on_write' [-Wunused-function] 262 | STBIWDEF void stbi_flip_vertically_on_write(int flag) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2290 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEnsmallen/include' -I'/Users/ripley/R/Library/mlpack/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c randomForest.cpp -o randomForest.o In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/prereqs.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/cereal/archives/json.hpp:68: /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:75:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 75 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:76:59: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 76 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:103:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 103 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:104:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:105:60: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 105 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:120:50: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 120 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:121:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 121 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/cereal/external/base64.hpp:122:58: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 122 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:948:49: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 948 | s = g_deq_L12[ba*3 - 6 + b % 3]*(int)(1 << 21 >> b/3); | ~^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1218:40: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1218 | y *= g_expfrac[e & 3]*(1 << 30 >> (e >> 2)); | ~ ~~~~~~~~^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1311:50: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1311 | frac = (float)((x & 63) - sign) / ((x & ~63) + sign); | ~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:1312:88: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 1312 | return g_drmp3_pow43[16 + ((x + sign) >> 6)]*(1.f + frac*((4.f/3) + frac*(2.f/9)))*mult; | ~^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4579:65: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4579 | pcmFrameCountOutF = *pRunningPCMFrameCountFractionalPart + (pcmFrameCountIn / srcRatio); | ^~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4581:64: warning: implicit conversion from 'drmp3_uint32' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 4581 | *pRunningPCMFrameCountFractionalPart = pcmFrameCountOutF - pcmFrameCountOut; | ~ ^~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1739:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1739 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1744:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1744 | return ((drwav_uint16)data[1] << 0) | ((drwav_uint16)data[0] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:2189:78: warning: implicit conversion loses integer precision: 'drwav_uint64' (aka 'unsigned long long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 2189 | calculatedLoopCount = (pChunkHeader->sizeInBytes - DRWAV_SMPL_BYTES) / DRWAV_SMPL_LOOP_BYTES; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4679:104: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 4679 | drwav_uint64 targetDataSizeBytes = (drwav_uint64)((drwav_int64)totalFrameCount * pFormat->channels * pFormat->bitsPerSample/8.0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7163:27: warning: implicit conversion from 'drwav_int64' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 7163 | *pOut++ = (float)((drwav_int64)sample / 9223372036854775807.0); | ^~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8483:41: warning: implicit conversion loses integer precision: 'int' to 'drwav_uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 8483 | return ((drwav_uint16)data[0] << 0) | ((drwav_uint16)data[1] << 8); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4834:40: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4834 | *dest16 = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4839:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4839 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4845:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4845 | dest16[0] = (cur[0] << 8) | cur[1]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4846:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4846 | dest16[1] = (cur[2] << 8) | cur[3]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image.h:4847:45: warning: implicit conversion loses integer precision: 'int' to 'stbi__uint16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4847 | dest16[2] = (cur[4] << 8) | cur[5]; | ~ ~~~~~~~~~~~~~~^~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1325:18: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 1325 | bits[0] = val & ((1<(imageBuf, dimension, 1, | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_image.hpp:86:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | images.col(i) = arma::Mat(imageBuf, dimension, 1, | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load.hpp:30: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:443:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 443 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:513:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 513 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:481:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 481 | arma::fmat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/load_audio.hpp:496:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | arma::Mat samples(totalFrames * opts.Channels(), 1); | ~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), 75 | opts.Width() * opts.Channels()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:74:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 74 | opts.Channels(), tempMatrix.colptr(i), | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:73:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | success = stbi_write_png(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:80:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 80 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:79:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 79 | success = stbi_write_bmp(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:85:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 85 | opts.Channels(), tempMatrix.colptr(i)); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:84:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 84 | success = stbi_write_tga(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:90:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ 90 | opts.Channels(), tempMatrix.colptr(i), opts.Quality()); | ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:89:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 89 | success = stbi_write_jpg(files.at(i).c_str(), opts.Width(), opts.Height(), | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:26: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:393:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 393 | opts.AudioDuration() = totalFrames / opts.SampleRate(); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:323:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 323 | dataFormat.channels = opts.Channels(); | ~ ~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:324:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 324 | dataFormat.sampleRate = opts.SampleRate(); | ~ ~~~~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_audio.hpp:325:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'drwav_uint32' (aka 'unsigned int') [-Wshorten-64-to-32] 325 | dataFormat.bitsPerSample = opts.BitsPerSample(); | ~ ~~~~~^~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:36: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:69: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:111:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | opts.Height(), 0, resizedFloatImages.colptr(i), newWidth, newHeight, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:110:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | stbir_resize_float_linear(originalImagesFloat.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:188:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | opts.Height(), 0, resizedImages.colptr(i), newWidth, newHeight, 0, | ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:187:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 187 | stbir_resize_uint8_linear(originalImages.colptr(i), opts.Width(), | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:223:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 223 | int midWidth = static_cast(largestRatio * opts.Width()); | ~ ~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:224:56: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 224 | int midHeight = static_cast(largestRatio * opts.Height()); | ~ ~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_resize_crop.hpp:247:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 247 | int cropUpDownEqually = (nRowsCrop / 2) * opts.Channels() * midWidth; | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:7: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ~ ~~~~~~~^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/image_letterbox.hpp:72:37: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 72 | if (width * 1. / srcOpt.Width() > height * 1. / srcOpt.Height()) | ^~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:42: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels.hpp:52: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/normalize_labels_impl.hpp:55:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | labels[i] = curLabel; | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding.hpp:67: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:53:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels[i] = curLabel; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:22: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:99:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | dimensionOffsets[indices[i]] = 0; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:121:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | dimensionOffsets[i] += dimensionOffsets[i - 1]; | ~~~~~~~~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/one_hot_encoding_impl.hpp:131:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | const size_t dimOffset = (row == 0) ? 0 : dimensionOffsets[row - 1]; | ~~~~~~~~~~~~~~~~ ~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:212:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 212 | testSize += floor(labelCount * testRatio); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:213:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 213 | trainSize += labelCount - floor(labelCount * testRatio); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks.hpp:226: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | output.set_size(bufSize + rows * rowOffset, bufSize + cols * colOffset); | ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:88:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | arma::reshape(maximalInputs.col(k++), blockHeight, blockWidth); | ~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/columns_to_blocks_impl.hpp:87:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | output.submat(minRow, minCol, maxRow, maxCol) = | ~~~~~~ ^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/math.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:23:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | if (qr(basis, r, arma::randn(d, d))) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:28:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | if (r(i, i) < 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:29:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | rDiag(i) = -1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | else if (r(i, i) > 0) | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:31:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | rDiag(i) = 1; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/math/random_basis_impl.hpp:33:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | rDiag(i) = 0; | ~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:40:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | (std::tgamma(dimension / 2.0 + 1.0) * (dimension + 2.0)); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/epanechnikov_kernel_impl.hpp:39:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 39 | std::pow(M_PI, dimension / 2.0) / | ^~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:26: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel.hpp:116: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp:71:20: warning: implicit conversion loses integer precision: 'int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 71 | sub[j] = tolower(sub[j]); | ~ ^~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:59: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/kernels.hpp:27: /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:55: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/kernels/spherical_kernel.hpp:60:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 60 | std::pow(M_PI, dimension / 2.0) / std::tgamma(dimension / 2.0 + 1.0); | ^~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree.hpp:300: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/cosine_tree/cosine_tree_impl.hpp:489:8: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 489 | if (!sigma) | ~^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split.hpp:85: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:183:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 183 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:184:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 184 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:218:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 218 | iRet = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:219:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 219 | jRet = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:314:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 314 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:323:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 323 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:461:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 461 | bestIndex = index; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp:470:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 470 | bestIndex = index; | ~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp:59: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:51:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:56:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:98:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 98 | bestIndex = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp:103:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 103 | bestIndex = i; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split.hpp:75: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:252:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 252 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:262:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 262 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:263:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 263 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:273:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 273 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:290:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 290 | bestIndexMinOverlapSplit = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:358:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 358 | bestAxis = j; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:369:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 369 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:370:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 370 | bestOverlapIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:380:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 380 | bestAreaIndexOnBestAxis = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp:398:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 398 | bestIndexMinOverlapSplit = i; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/is_spill_tree.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/spill_tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/midpoint_space_split_impl.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | snd = points[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/spill_tree/../space_split/space_split_impl.hpp:93:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | snd = points[i]; | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:64: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe.hpp:201: /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:93:16: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 93 | highFreq = sampleRate / 2.0f; | ^~~~~~~~~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:95:63: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 95 | size_t lengthInSamples = static_cast(windowLength * sampleRate | ~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/transforms/mfe_impl.hpp:97:60: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 97 | size_t stepsInSamples = static_cast(windowStep * sampleRate | ~ ^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1.hpp:106: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:43:35: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 43 | double precision = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:44:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 44 | double recall = double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:85:37: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | double precision = double(tp) / positivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:86:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 86 | double recall = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:78:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | arma::vec f1s = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/f1_impl.hpp:87:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | f1s(c) = (precision + recall == 0.0) ? 0.0 : | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:34: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:72:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec precisions = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/precision_impl.hpp:77:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | precisions(c) = double(tp) / numberOfPositivePredictions; | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score.hpp:77: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/r2_score_impl.hpp:41:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 41 | return totalSumSquared ? 1.0 : DBL_MIN; | ^~~~~~~~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:42:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 42 | return double(tp) / numberOfPositiveClassInstances; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:31: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | recalls(c) = double(tp) / positiveLabels; | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:72:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec recalls = arma::vec(numClasses); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/recall_impl.hpp:77:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | recalls(c) = double(tp) / positiveLabels; | ~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score.hpp:56: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:74:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 74 | tpr /= numberOfTrueLabels; | ~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/roc_auc_score_impl.hpp:75:10: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 75 | fpr /= numberOfFalseLabels; | ~~ ^~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/metrics.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score.hpp:104: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:45:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | size_t clusterLabel = labels(clusterLabels(j)); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (labels(i) != clusterLabel) { | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:63:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | sampleScores(i) = 0.0; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:65:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | sampleScores(i) = minInterClusterDistance - intraClusterDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:66:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | sampleScores(i) /= std::max( | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/metrics/silhouette_score_impl.hpp:102:33: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 102 | distance /= (numSameCluster - sameCluster); | ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/cv.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv.hpp:321: /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:255:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | if (std::isnan(evaluations(i)) || std::isinf(evaluations(i))) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/cv/k_fold_cv_impl.hpp:259:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 259 | << "a score of " << evaluations(i) << "; ignoring when computing " | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:98: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:35:21: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 35 | width(100.0 / widthIn), | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:144:46: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 144 | const size_t progress = ((double) step / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:146:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 146 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:163:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 162 | output << "] " << progress << "% - ETA: " << (size_t) (stepTimer.toc() * | ~ 163 | (epochSize - step + 1)) % 60 << "s - loss: " << | ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:63: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:207:52: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 207 | const size_t progress = ((double) (step - 1) / epochSize) * 100; | ~ ^~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:209:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 209 | for (size_t i = 0; i < 100; i += width) | ~~^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/progress_bar.hpp:225:68: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:100: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:46: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/callbacks/report.hpp:112:39: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 112 | size_t iterationStep = objectives.size() / (iterationsPercentage * 100); | ~~~~~~~~~~~^~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:11: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions.hpp:156: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:206:30: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2, arma::op_max>>::value && resolves_to_vector, arma::op_max>>::yes, typename Op, arma::op_max>::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 206 | vertices = max(max(edges)) + 1; | ~ ~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:254:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 254 | a(edge[0], edge[1]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:255:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 255 | a(edge[1], edge[0]) = 1; | ~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:228:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat s(n, n); | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:242:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | arma::mat zz = (inner * arma::eye(n, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:248:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | arma::vec edge = edges.col(i - 1); | ~~~ ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:251:15: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | a.zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 287 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 288 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:282:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 282 | sum += std::abs(dot(coordinates.col(i), coordinates.col(i))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:287:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 287 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:288:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 288 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:291:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 291 | return std::abs(dot(coordinates.col(i), coordinates.col(j))); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 304 | size_t i = edges(0, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 305 | size_t j = edges(1, index - 1); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:304:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | size_t i = edges(0, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:305:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | size_t j = edges(1, index - 1); | ~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:318:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 318 | gradient.col(i) = coordinates.col(j); | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:319:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 319 | gradient.col(j) += coordinates.col(i); // In case j = i (shouldn't happen). | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:340:13: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 340 | float m = NumConstraints(); | ~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:341:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 341 | float r = 0.5 + std::sqrt(0.25 + 2 * m); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:342:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 342 | if (ceil(r) > vertices) | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:343:9: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 343 | r = vertices; // An upper bound on the dimension. | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:349:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 349 | for (size_t i = 0; i < r; i++) | ^ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:355:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 355 | std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ^~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:345:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 345 | initialPoint.set_size(ceil(r), vertices); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:354:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | initialPoint(i, j) = std::sqrt(1.0 / r) + | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/aug_lagrangian_test_functions_impl.hpp:357:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | initialPoint(i, j) = std::sqrt(1.0 / (vertices * m)); | ~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:22: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function.hpp:144: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:28:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 28 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:33:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | initialPoint(i) = -1.2; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:37:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | initialPoint(i) = 1; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:45:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | visitationOrder = arma::shuffle(arma::linspace>(0, n - 2, | ~~~~ 45 | n - 1)); | ~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:59:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:97:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:32: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function.hpp:138: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:59: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 24 | visitationOrder(linspace>(0, n - 1, n)) | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:32:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | visitationOrder = shuffle(linspace>(0, n - 1, n)); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:48:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:38: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function.hpp:140: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:33:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:45:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/schwefel_function_impl.hpp:70:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:39: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function.hpp:74: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:24:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace>(0, NumFunctions() - 1, | ~~~~ 24 | NumFunctions())) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:30:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | visitationOrder = arma::shuffle(arma::linspace >(0, | ~~~~ 30 | (NumFunctions() - 1), NumFunctions())); | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:45:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sgd_test_function_impl.hpp:77:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | switch (visitationOrder(i)) | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:42: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function.hpp:139: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:25:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 25 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:30:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint(i) = 5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:32:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | initialPoint(i) = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:39:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:53:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/sphere_function_impl.hpp:77:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:126:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 126 | double GetFinalObjective() const { return -39.16599 * n; } | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:43: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function.hpp:143: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:23:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 23 | visitationOrder(arma::linspace >(0, n - 1, n)) | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:26:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 26 | initialPoint.set_size(n, 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:30:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | initialPoint[i] = -5; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:36:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 36 | arma::linspace >(0, n - 1, n)); | ~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:50:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/styblinski_tang_function_impl.hpp:78:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | const size_t p = visitationOrder[j]; | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:104: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/problems.hpp:62: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/maf/maf5_function.hpp:76:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | a(a), | ~^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:124:16: warning: unused variable 'result' [-Wunused-variable] 124 | const bool result = Optimize(function, coordinates, this->deprecatedLambda, | ^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:116: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/bigbatch_sgd.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:164:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 164 | if (gradientNorm && sampleVariance && batchSize) | ^~~~~~~~~~~~ ~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/bigbatch_sgd/adaptive_stepsize.hpp:169:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 169 | (batchSize * gradientNorm)) / v; | ^~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:119: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes.hpp:179: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:32: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 114 | currentLargeLambda / defaultLambda, u * u)); | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:114:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ~ 114 | currentLargeLambda / defaultLambda, u * u)); | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cmaes/pop_cmaes_impl.hpp:113:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 113 | size_t smallLambda = static_cast(defaultLambda * std::pow(0.5 * | ^~~~~~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:121: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne.hpp:208: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:70:36: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | numElite = floor(selectPercent * populationSize); | ~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:186:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 186 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/cne/cne_impl.hpp:189:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 189 | 1, arma::distr_param(0, numElite - 1))); | ~~~~ ~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:122: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de.hpp:148: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:105:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 105 | l = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/de/de_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | m = arma::randi(arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:17: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_classic.hpp:52:48: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | typename MatType::elem_type gamma = 2.0 / (numIter + 2.0); | ^~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:130: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search.hpp:71: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/grid_search/grid_search_impl.hpp:77:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | for (size_t j = 0; j < numCategories(i); ++j) | ~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:135: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea.hpp:485: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:308:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 308 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:310:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 310 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:570:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | indexes = arma::linspace>(0, front.size() - 1, front.size()); | ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:749:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/agemoea/agemoea_impl.hpp:760:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 760 | arma::Row extreme(numObjectives, arma::fill::zeros); | ~~~~~~~ ^~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:136: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead.hpp:357: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/moead/moead_impl.hpp:300:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 300 | const size_t idx = idxShuffle(i); | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:137: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2.hpp:382: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:302:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 302 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/nsga2/nsga2_impl.hpp:304:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 304 | arma::distr_param(0, populationSize - 1)); | ~~~~ ~~~~~~~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:139: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/parallel_sgd.hpp:16: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ^~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/parallel_sgd/decay_policies/exponential_backoff.hpp:67:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | cutoffEpoch += firstBackoffEpoch / beta; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:153: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:76:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 76 | er *= multFactor; | ~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:35: warning: implicit conversion turns floating-point number into integer: '__promote_t' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 83 | snapshotEpochs - snapshots + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sgdr/snapshot_ensembles.hpp:82:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to '__promote_t' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 82 | snapshotEpochs = epochRestart * std::pow(multFactor, | ^~~~~~~~~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:157: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa.hpp:137: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/spsa/spsa_impl.hpp:34:16: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 34 | ak(0.001 * maxIterations), | ~ ^~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:351: /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:67:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | bestParameters[i] = datasetInfo.UnmapString(bestParameters[i], i); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:96:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | arma::Row numCategories(datasetInfo.Dimensionality()); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt_impl.hpp:99:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | numCategories[d] = datasetInfo.NumMappings(d); | ~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron.hpp:246: /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:251:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 251 | if (maxIndexRow != labels(0, j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/perceptron/perceptron_impl.hpp:255:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | tempLabel = labels(0, j); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:72:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:92:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:93:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:94:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:95:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:107:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:115:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:116:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:127:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:128:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:129:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:145:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 145 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:156:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 156 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:157:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:159:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:165:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:169:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:170:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:174:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:175:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/information_gain.hpp:183:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:41:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:203:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 203 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:132:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 132 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:138:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:158:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:165:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | childResponses[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:167:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:81:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | totalLeftWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:88:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | totalRightWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:113:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | totalLeftWeight += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:114:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | totalRightWeight -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp:160: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:65:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | ++classCounts(labels(i), 0); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:23: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:100:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | ++classCounts(labels(i), 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:208:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | arma::rowvec leftResponses(leftLeafSize), rightResponses(rightLeafSize); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | leftWeights.set_size(leftLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:213:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 213 | rightWeights.set_size(rightLeafSize); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:227:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 227 | leftResponses[l++] = responses[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~~~~~~ ~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp:229:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | rightResponses[r++] = responses[i]; | ~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:49:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | arma::umat categoryCounts(numCategories, 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:50:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | arma::vec categoryP(numCategories); | ~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:57:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | totalCount = (categoryCounts(i, 0) + categoryCounts(i, 1)); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:59:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | / (categoryCounts(i, 0) + categoryCounts(i, 1))); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:58:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | categoryP[i] = totalCount == 0 ? 0 : (categoryCounts(i, 1) | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:62:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:64:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 64 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:91:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:92:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:93:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:95:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 95 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:94:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:96:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:111:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | arma::uvec categories(numCategories); | ~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:116:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::mat classWeightSums = arma::zeros(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:130:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | = arma::zeros>(numClasses, 2); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:173:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | arma::vec categoryResponse(numCategories); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:174:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 174 | arma::uvec categoryCounts(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:183:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 183 | categoryResponse[i] = categoryCounts[i] == 0 ? 0 : | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:184:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | categoryResponse[i] / categoryCounts[i]; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:188:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | arma::uvec categoryRank(numCategories); | ~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:190:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 190 | categoryRank[sortedCategories[i]] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:217:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 217 | splitInfo.set_size(numCategories + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:218:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 218 | for (size_t c : sortedCategories.subvec(0, splitIndex)) | ~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:219:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | splitInfo[c] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:221:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ 221 | numCategories - 1)) | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:220:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 220 | for (size_t c : sortedCategories.subvec(splitIndex + 1, | ~~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:222:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 222 | splitInfo[c] = 1; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:267:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 267 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:269:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:275:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 275 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:280:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:294:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 294 | categories[k] = 1; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:359:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 359 | splitInfo.set_size(numCategories); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:361:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | splitInfo[i] = categories[i]; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:367:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::uvec samples = find(categorySamples.col(k)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:372:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | categories[k] = 0; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp:386:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 386 | categories[k] = 1; | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:45:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | values.set_size(numDimensions + 1); | ~~~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:55:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | value = RandInt(dimensions); | ~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:61:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (values[j] == value) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:69:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | values[i] = value; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:72:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | values[numDimensions] = std::numeric_limits::max(); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp:88:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | return values[++i]; | ~~~~~~ ^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/select_functions.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/select_functions/random_dimension_select.hpp:32:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 32 | size_t Begin() const { return RandInt(dimensions); } | ~~~~~~~ ^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1053:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1053 | arma::vec v = probabilities.unsafe_col(i); // Alias of column. | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:609: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor.hpp:527: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:688:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 688 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:705:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 705 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:707:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 707 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:722:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 722 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:724:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 724 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:728:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 728 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:749:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 749 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:850:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 850 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:859:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 859 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:862:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 862 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:876:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 876 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:878:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:882:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 882 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp:903:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:301: /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:394:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 394 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:425:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 425 | if (predictedLabels(j) == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:435:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 435 | if (k == labels(j)) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost_impl.hpp:450:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 450 | if (k == labels(j)) | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add.hpp:94: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:47: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:58: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 52 | sizeA = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:53:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 53 | sizeB = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:37:63: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | arma::field vecInput = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:38:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | arma::field vecLabels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:44:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | arma::vec weights(bitLen - 1); | ~~~~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:45:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | weights = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:50:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | d.Probabilities(0) = exp2(arma::linspace(1, bitLen - 1, bitLen - 1)); | ~~~~ ~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:58:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~ 58 | sizeA + sizeB + 1, DistrParam(0, 1)); | ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:57:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | vecInput(i) = randi( | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:60:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | vecInput(i).at(sizeA) = 2; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:65:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | valA += static_cast(vecInput(i).at(k)) << k; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:71:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | valB += static_cast(vecInput(i).at(k)) << (k - sizeA - 1); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~ ~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:93:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | vecLabels(i) = arma::colvec(binarySeq.size()); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:96:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | vecLabels(i).at(j) = binarySeq[j]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | labels.at(i).reshape(input.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:122:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | input.set_size(fieldInput(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:123:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | labels.set_size(fieldLabels(0).n_rows, batchSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:126:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 126 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:127:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 127 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:32: warning: implicit conversion turns floating-point number into integer: 'const double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 140 | size_t val = input.at(i).at(j); | ~~~ ~~~~~~~~~~~~^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:137:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | output.at(i) = zeros(3, input.at(i).n_elem); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:138:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | for (size_t j = 0; j < input.at(i).n_elem; ++j) | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:140:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | size_t val = input.at(i).at(j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | output.at(i).at(val, j) = 1; | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:143:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | output.at(i).reshape(output.at(i).n_elem, 1); | ~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy.hpp:96: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:67:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 67 | size = 2 + d.Random()(0); | ~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:52:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:53:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:59:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | arma::vec weights(maxLength - 1); | ~~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:65:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | exp2(arma::linspace(1, maxLength - 1, maxLength - 1)); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:70:7: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | arma::colvec vecInput = randi( | ~~~~~ 70 | size, DistrParam(0, 1)); | ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:72:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | repmat(vecInput, nRepeats, 1)); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:74:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | input(i) = zeros(totSize, 2); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:75:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | input(i).col(0).rows(0, vecInput.n_elem - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:78:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | input(i).at(vecInput.n_elem, 0) = 0.5; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:80:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | ones(totSize - vecInput.n_elem - addSeparator); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).col(1).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:81:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | input(i) = input(i).t(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:82:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:83:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | labels(i) = zeros(totSize, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:84:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | labels(i).col(0).rows(addSeparator + vecInput.n_elem, totSize - 1) = | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:96:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | input = zeros(fieldInput(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:97:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | labels = zeros(fieldLabels(0).n_rows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:100:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/copy_impl.hpp:101:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score.hpp:37: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/score_impl.hpp:47:12: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 47 | score /= testSize; | ~~ ^~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/augmented.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/tasks.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 69 | val += input(i).at(k, j); | ~~~~^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:50:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | input = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:51:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | labels = arma::field(batchSize); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:58:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 58 | size = RandInt(2, maxLength+1); | ~~~~~~~ ~~~~~~~~~^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:60:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | input(i) = randi(bitLen, size, DistrParam(0, 1)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:61:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::mat itemAns(bitLen, size); | ~~~~~~~ ^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:62:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | arma::colvec vals(size); | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:69:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | val += input(i).at(k, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:71:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | vals[j] = val; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | itemAns.col(j) = input(i).col(indices.at(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:78:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | labels(i) = itemAns; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:79:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | input(i).reshape(input(i).n_elem, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:82:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::mat sepInput = zeros(input(i).n_elem + size, 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:87:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | input(i).rows(origPtr, origPtr + bitLen - 1); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:86:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | sepInput.rows(ptr, ptr + bitLen - 1) = | ~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:90:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | sepInput.at(ptr, 0) = 0.5; | ~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:93:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | input(i) = sepInput; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:95:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | labels(i).reshape(labels(i).n_elem, 1); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:108:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | input = zeros(inputRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:109:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | labels = zeros(labelRows, cols); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:112:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | input.col(i) = fieldInput.at(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/sort_impl.hpp:113:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | labels.col(i) = fieldLabels.at(i); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:31: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/convolution.hpp:290:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 290 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/network_init.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer.hpp:346: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/layer_types.hpp:38: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:59: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/layer/grouped_convolution.hpp:307:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 307 | return std::floor(size + pSideOne + pSideTwo - k) / s + 1; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/init_rules.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/init_rules/nguyen_widrow_init.hpp:80:46: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 80 | double beta = 0.7 * std::pow(cols, 1.0 / rows); | ~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/ann.hpp:34: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/models.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny.hpp:274: /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/models/yolov3/yolov3_tiny_impl.hpp:210:16: warning: unused variable 'numClasses' [-Wunused-variable] 210 | const size_t numClasses = classNames.size(); | ^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn.hpp:114: /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:135:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 135 | const size_t tableIndex = tableLocations[p.second]; | ~~~~~~~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/qdafn_impl.hpp:148:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 148 | tableLocations[p.second]++; | ~~~~~~~~~~~~~~ ~~^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:225:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 225 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:226:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 226 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:229:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 229 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:230:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:231:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 231 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:234:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 234 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:233:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 233 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:242:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 242 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:241:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:240:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 240 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 *( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:245:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 245 | ratingError * parameters.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:244:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 244 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:243:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 243 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:246:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:247:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 247 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:248:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 248 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:249:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 249 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:270:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 269 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 270 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:334:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:335:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:338:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 338 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:339:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 339 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:340:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:343:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 343 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:342:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | dot(iterate.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:347:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:346:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:350:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 350 | ratingError * iterate.col(user).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:349:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 349 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:352:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:354:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 354 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:361:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 361 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:363:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 363 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:366:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:368:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap.hpp:65: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:38:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | distancesOut.col(queryMap[i]) = sqrt(distances.col(i)); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:40:24: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | distancesOut.col(queryMap[i]) = distances.col(i); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:23: warning: implicit conversion loses integer precision: 'const value_type' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:44:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | neighborsOut(j, queryMap[i]) = referenceMap[neighbors(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/unmap_impl.hpp:67:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighborsOut[j] = referenceMap[neighbors[j]]; | ~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:943:23: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 943 | effectiveError /= numCases; | ~~ ^~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t itemNum = max(data.row(1)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | itemMean(item) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(item) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | itemMean = arma::vec(itemNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(itemNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | itemMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | itemMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + itemMean(item); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t item = combinations(1, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/item_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += itemMean(item); | ~~~~~~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/normalization.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:51:45: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t userNum = max(data.row(0)) + 1; | ~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:61:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | userMean(user) += rating; | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:62:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | ratingNum(user) += 1; | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:76:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | datapoint(2) -= userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:52:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | userMean = arma::vec(userNum); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:54:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | arma::Row ratingNum(userNum); | ~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:69:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:70:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 104 | userMean(i) /= ratingNum(i); | ~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:103:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | if (ratingNum(i) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:104:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 104 | userMean(i) /= ratingNum(i); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:133:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | return rating + userMean(user); | ~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const size_t user = combinations(0, i); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/normalization/user_mean_normalization.hpp:148:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | predictions(i) += userMean(user); | ~~~~~~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:94:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:106:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/batch_svd_method.hpp:141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:56: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:93:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | arma::as_scalar(w.row(item) * h.col(user)) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:105:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | rating = w * h.col(user) + p + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:131:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:91:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:103:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/nmf_method.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:100:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:112:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/randomized_svd_method.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:195:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 195 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:196:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 196 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:199:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:201:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:200:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 200 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:208:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | ratingError * parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:207:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | parameters.col(user) -= stepSize * (lambda * parameters.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:210:70: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | ratingError * parameters.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:209:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 209 | parameters.col(item) -= stepSize * (lambda * parameters.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:231:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 230 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 231 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:292:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 292 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:293:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 293 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:296:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:298:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 298 | iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:297:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 297 | double ratingError = rating - dot(iterate.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:303:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 303 | ratingError * iterate.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:302:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 302 | arma::mat userUpdate = stepSize * (lambda * iterate.col(user) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:305:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 305 | ratingError * iterate.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:304:65: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 304 | arma::mat itemUpdate = stepSize * (lambda * iterate.col(item) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:312:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 312 | iterate(i, user) -= userUpdate(i); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:314:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 314 | iterate(i, item) -= itemUpdate(i); | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:87:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:99:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:134:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:97:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:109:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_complete_method.hpp:144:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 144 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:96:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:108:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 108 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svd_incomplete_method.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:52: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:381:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 381 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:335:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 335 | const size_t user = data(0, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:336:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 336 | const size_t item = data(1, currentFunction) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:340:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 340 | const double rating = data(2, currentFunction); | ~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:341:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 341 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:342:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 342 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:346:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 346 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:347:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 347 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:348:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 348 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:352:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 352 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:357:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 357 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:360:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 360 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:366:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 366 | ratingError * parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:365:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 365 | lambda * parameters.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:364:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 364 | parameters.col(user).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:368:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 368 | lambda * parameters.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:367:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | parameters.col(item).subvec(0, rank - 1) -= stepSize * 2 * ( | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:370:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | parameters(rank, user) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:371:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 371 | lambda * parameters(rank, user) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:372:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 372 | parameters(rank, item) -= stepSize * 2 * ( | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:373:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 373 | lambda * parameters(rank, item) - ratingError); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:375:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 375 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:376:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 376 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:384:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 384 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:382:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 382 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:380:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1) -= | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:29: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:518:42: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 518 | stepSize * 2.0 * (lambda / implicitCount * | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:406:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 405 | arma::Col visitationOrder = arma::linspace>(0, | ~~~~ 406 | (function.NumFunctions() - 1), function.NumFunctions()); | ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:472:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 472 | const size_t user = data(0, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:473:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 473 | const size_t item = data(1, visitationOrder[j]) + numUsers; | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~ ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:477:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 477 | const double rating = data(2, visitationOrder[j]); | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:478:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 478 | const double userBias = iterate(rank, user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:479:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 479 | const double itemBias = iterate(rank, item); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:482:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 482 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:483:66: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 483 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:484:68: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 484 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:488:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 488 | userVec += iterate.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:493:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 493 | userVec += iterate.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:496:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 496 | dot(userVec, iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:500:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 500 | ratingError * iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:499:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 499 | lambda * iterate.col(user).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:502:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 502 | lambda * iterate.col(item).subvec(0, rank - 1) - | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:505:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 505 | lambda * iterate(rank, user) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:507:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 507 | lambda * iterate(rank, item) - ratingError); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:510:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 510 | arma::mat itemImplicitUpdate(rank, implicitCount); | ~~~~~~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:511:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 511 | arma::Col implicitItems(implicitCount); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:512:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 512 | it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:513:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 513 | it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:521:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 521 | iterate.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:519:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 519 | iterate.col(implicitStart + it.row()).subvec(0, rank - 1) - | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:517:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 517 | itemImplicitUpdate.col(implicitIndex) = | ~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:522:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 522 | implicitItems(implicitIndex) = it.row(); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:530:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 530 | iterate(i, user) -= userVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:532:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 532 | iterate(i, item) -= itemVecUpdate(i); | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:535:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 535 | iterate(rank, user) -= userBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:537:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 537 | iterate(rank, item) -= itemBiasUpdate; | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:543:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 543 | iterate(i, implicitStart + implicitItems(k)) -= | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:544:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 544 | itemImplicitUpdate(i, k); | ~~~~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:110:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:113:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | arma::as_scalar(w.row(item) * userVec) + p(item) + q(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:128:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:129:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:138:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | userVec += h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:140:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 140 | rating = w * userVec + p + q(user); | ~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:28: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:166:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | query.col(i) = h.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:23: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/quic_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:95:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double rating = arma::as_scalar(w.row(item) * h.col(user)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:107:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | rating = w * h.col(user); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:37: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/block_krylov_svd_method.hpp:142:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | query.col(i) = stretchedH.col(users(i)); | ~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/interpolation_policies.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:71:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | a.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:72:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | b.set_size(userNum, userNum); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:57: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:54: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && is_arma_type>::value && is_same_type::elem_type, typename Col::elem_type>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:114:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | arma::mat coeff(neighborNum, neighborNum); | ~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:116:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | arma::vec constant(neighborNum); | ~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:118:42: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | arma::vec userRating(cleanedData.col(queryUser)); | ~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:29: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:15: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:134:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 134 | if (a(neighbors(i), neighbors(j)) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:41: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:137:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 137 | coeff(i, j) = a(neighbors(i), neighbors(j)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:138:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:147:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | coeff(i, j) = dot(iPrediction, jPrediction) / itemNum; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:148:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 148 | if (coeff(i, j) == 0) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:149:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 149 | coeff(i, j) = std::numeric_limits::min(); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:150:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | coeff(j, i) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | a(neighbors(i), neighbors(j)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:27: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:153:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | a(neighbors(j), neighbors(i)) = coeff(i, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:13: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:158:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | if (b(neighbors(i), queryUser) != 0) | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:25: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:160:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | constant(i) = b(neighbors(i), queryUser); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:167:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | constant(i) = dot(iPrediction, userRating) / support; | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:168:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | if (constant(i) == 0) | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:169:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 169 | constant(i) = std::numeric_limits::min(); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:11: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/interpolation_policies/regression_interpolation.hpp:171:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | b(neighbors(i), queryUser) = constant(i); | ~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:291: /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:198:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 198 | recommendations.set_size(numRecs, users.n_elem); | ~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:199:20: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 199 | arma::mat values(numRecs, users.n_elem); | ~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:223:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 223 | ratings += weights(j) * neighborRatings; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:264:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 264 | if (recommendations(numRecs - 1, i) == def.second) | ~~~~~~~~~~~~~~~ ~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:266:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 266 | << "for user " << users(i) << " (not enough un-rated items)!" | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:331:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 331 | sortedCombinations.col(i) = combinations.col(ordering[i]); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:370:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 370 | while (users[user] < sortedCombinations(0, i)) | ~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf_impl.hpp:379:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 379 | predictions(ordering[i]) = rating; | ~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:37:53: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 37 | UnionFind(const size_t size) : parent(size), rank(size) | ~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:41:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | parent[i] = i; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:42:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | rank[i] = 0; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:57:16: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 57 | if (parent[x] == x) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | parent[x] = Find(parent[x]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:65:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | return parent[x]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:84:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 84 | else if (rank[xRoot] == rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:86:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | parent[yRoot] = parent[xRoot]; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:87:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | rank[xRoot] = rank[xRoot] + 1; | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:89:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | else if (rank[xRoot] > rank[yRoot]) | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:91:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | parent[yRoot] = xRoot; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/emst/union_find.hpp:95:14: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | parent[xRoot] = yRoot; | ~~~~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/dbscan.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/dbscan/random_point_selection.hpp:42:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 42 | const size_t index = RandInt(max); | ~~~~~~~ ^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree.hpp:361: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dtree_impl.hpp:76:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const ElemType split = (dimVec[i] + dimVec[i + 1]) / 2.0; | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:40: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/det.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils.hpp:147: /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:31:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 31 | arma::Mat table(numLeaves, (numClasses + 1)); | ~~~~~ ~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:38:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | const size_t label = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:78:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | if (imps[i] > max) | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:79:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | max = imps[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:124:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:179:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 179 | arma::vec regularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:215:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | cvOldFromNew[i] = i; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:224:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 224 | arma::vec cvRegularizationConstants(prunedSequence.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:273:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 273 | - (long double) regularizationConstants[i]; | ~~~~~~~~~~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/det/dt_utils_impl.hpp:290:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 290 | oldFromNew[i] = i; | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:46:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | if (ratios[i] > 1.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:50:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (ratios[i] < 0.0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:101:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | diagCovariance[eigvalOrder[i]] = eigvals[i]; | ~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:87:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | distribution[p] = minDistance; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_plus_plus_initialization.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | distribution[j] += distribution[j - 1]; | ~~~~~~~~~~~~ ~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster.hpp:79: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:88:40: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 88 | ((clusterCounts[maxVarCluster] + 1) * variances[maxVarCluster] - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:87:39: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | variances[maxVarCluster] = (1.0 / clusterCounts[maxVarCluster]) * | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:50:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | if (assignments[i] == maxVarCluster) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:69:17: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | clusterCounts[emptyCluster]++; | ~~~~~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:71:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | assignments[furthestPoint] = emptyCluster; | ~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:74:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | variances[emptyCluster] = 0; | ~~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:23: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 155 | variances[i] /= clusterCounts[i]; | ~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:143:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 143 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:152:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | if (clusterCounts[i] <= 1) | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:153:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 153 | variances[i] = 0; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp:155:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 155 | variances[i] /= clusterCounts[i]; | ~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:24: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:60:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | newCentroids.shed_col(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kill_empty_clusters.hpp:61:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | clusterCounts.shed_row(emptyCluster); | ~~~~~~~~ ^~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:25: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/allow_empty_clusters.hpp:58:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | newCentroids.col(emptyCluster) = oldCentroids.col(emptyCluster); | ~~~ ^~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:28: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans.hpp:73: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/naive_kmeans_impl.hpp:87:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 87 | newCentroids.col(i) /= counts(i); | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:29: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans.hpp:173: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp:179:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 179 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans.hpp:66: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/elkan_kmeans_impl.hpp:165:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 165 | newCentroids.col(c) /= counts[c]; | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:31: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans.hpp:64: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp:141:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 141 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:32: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans.hpp:90: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp:70:30: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | newCentroids.col(c) /= counts(c); | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:213: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:194:31: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 194 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans_impl.hpp:298:29: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 298 | centroids.col(i) /= counts[i]; | ~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/em_fit.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/kmeans.hpp:217: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start.hpp:109: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | sampledCentroids.cols(i * clusters, (i + 1) * clusters - 1) = centroids; | ~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kmeans/refined_start_impl.hpp:106:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | assignments[i] = closestCluster; | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:327: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:36:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 36 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:33:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:67:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:87:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:141:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:171:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:185:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:211:63: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | double newProb = LogProbability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:215:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 215 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:235:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 235 | arma::mat logLikelihoods(gaussians, data.n_cols); | ~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:241:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | logLikelihoods.row(i) = std::log(weightsL(i)) + trans(logPhis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:246:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | loglikelihood += AccuLog(logLikelihoods.col(j)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:295:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 295 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:380:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 380 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:43: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm.hpp:330: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm.hpp:326: /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:66:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:120:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 120 | weights.fill(1.0 / gaussians); | ~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:117:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | weights(gaussians) | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:150:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 150 | sum = LogAdd(sum, std::log(weights[i]) + | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:170:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | arma::mat logProb(observation.n_cols, gaussians); | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:219:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 219 | return std::log(weights[component]) + | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:246:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 246 | sumProb += weights(g); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:255:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 255 | randn(dimensionality) + dists[gaussian].Mean(); | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:276:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 276 | double newProb = Probability(observations.unsafe_col(i), j); | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:280:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 280 | labels[i] = j; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:296:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 296 | arma::mat likelihoods(gaussians, observations.n_cols); | ~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:301:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 301 | likelihoods.row(i) = weights(i) * trans(phis); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:307:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 307 | if (accu(likelihoods.col(j)) == 0) | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:310:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 310 | logLikelihood += std::log(accu(likelihoods.col(j))); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:367:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 367 | arma::vec weightsTrial(gaussians); | ~~~~~~~~~~~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:44: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm.hpp:549: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:507:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 507 | stateSeqBack(state, 0) = state; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hmm/hmm_impl.hpp:546:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long' [-Wfloat-conversion] 545 | stateSeq[dataSeq.n_cols - t] = | ~ 546 | stateSeqBack(stateSeq[dataSeq.n_cols - t + 1], dataSeq.n_cols - t + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 32 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 33 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:32:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 32 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:33:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:46:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:54:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:59:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/gini_impurity.hpp:63:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | impurity -= ((double) splitCounts[i] / (double) numElem) * | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:24: warning: implicit conversion from 'unsigned long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 38 | splitCounts[i] = accu(counts.col(i)); | ~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 39 | numElem += splitCounts[i]; | ~~~~~~~~^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:38:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 38 | splitCounts[i] = accu(counts.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:39:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | numElem += splitCounts[i]; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:52:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | const double f = ((double) classCounts[i] / (double) numElem); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:61:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | if (splitCounts[i] > 0) | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:66:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double f = ((double) counts(j, i) / (double) splitCounts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/information_gain.hpp:71:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | gain += ((double) splitCounts[i] / (double) numElem) * splitGain; | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:45: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_trees.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree.hpp:573: /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1210:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1210 | size_t currentIndex = counts[direction]; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1211:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 1211 | indices[direction][currentIndex] = i; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1212:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1212 | counts[direction]++; | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1221:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1221 | if (counts[i] == 0) | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1228:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1228 | indices[i].subvec(0, counts[i] - 1)); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/hoeffding_trees/hoeffding_tree_impl.hpp:1244:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1244 | for (size_t j = 0; j < counts[i]; ++j) | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:46: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde.hpp:362: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_impl.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules.hpp:229: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:233:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 233 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/kde/kde_rules_impl.hpp:448:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 448 | const size_t mThresh = std::ceil(mThreshBase * mThreshBase); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/naive_method.hpp:83:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 83 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/ordered_selection.hpp:35:57: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | return arma::linspace >(0, m - 1, m); | ~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/nystroem_method.hpp:22: /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:33:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 33 | arma::Col selectedPoints(m); | ~~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/nystroem_method/random_selection.hpp:35:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | selectedPoints(i) = RandInt(0, data.n_cols); | ~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:47: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_pca.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp:73:24: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | for (size_t i = 0; i < floor(eigval.n_elem / 2.0); ++i) | ^ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:51: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm.hpp:467: /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:315:27: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 315 | return (double) 100.0 * count / labels.n_elem; | ~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/linear_svm/linear_svm_impl.hpp:311:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 311 | if (testLabels(i) == labels(i)) | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:55: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search.hpp:483: /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:789:24: warning: implicit conversion loses floating-point precision: 'double' to 'const float' [-Wimplicit-float-conversion] 789 | const float cutoff = 0.1; | ~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:737:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 737 | hashMat.set_size(T + 1, numTablesToSearch); | ~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:775:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 775 | const size_t hashInd = hashMat(p, i); // find query's bucket | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:806:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 806 | size_t hashInd = hashMat(p, i); | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:828:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 828 | refPointsConsideredSmall.zeros(maxNumPoints); | ~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/lsh/lsh_search_impl.hpp:837:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 837 | const size_t hashInd = hashMat(p, i); // Find the query's bucket. | ~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:56: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion.hpp:146: /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:62:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | randu(m + n, DefaultRank(m, n, indices.n_cols))) | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:81:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | if (indices(0, i) >= m || indices(1, i) >= n) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:83:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | << indices(0, i) << ", " << indices(1, i) | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:91:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | sdp.SDP().C().eye(m + n, m + n); | ~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:96:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | sdp.SDP().SparseA()[i].zeros(m + n, m + n); | ~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:97:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | sdp.SDP().SparseA()[i](indices(0, i), m + indices(1, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~ ~~^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:98:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | sdp.SDP().SparseA()[i](m + indices(1, i), indices(0, i)) = 1.; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:107:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 107 | recovered = recovered(arma::span(0, m - 1), arma::span(m, m + n - 1)); | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:122:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 122 | float r = 0.5 + std::sqrt(0.25 + 2 * p); | ~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:123:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 123 | if (ceil(r) > mpn) | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:124:9: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 124 | r = mpn; // An upper bound on the dimension. | ~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:125:10: warning: implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 125 | return ceil(r); | ~~~~~~ ^~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier.hpp:296: /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:103:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:133:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 133 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:146:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | const size_t label = labels[j]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:334:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 334 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp:385:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 385 | predictions[i] = maxIndex; | ~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:475:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 475 | arma::vec probs = probabilities.unsafe_col(i); | ~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:68:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:70:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:73:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/cont_double_pole_cart.hpp:75:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:20: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:67:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | double Angle(const size_t i) const { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:69:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | double& Angle(const size_t i) { return data[2 * i]; } | ~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:72:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | double AngularVelocity(const size_t i) const { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/double_pole_cart.hpp:74:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | double& AngularVelocity(const size_t i) { return data[2 * i + 1]; } | ~~~~ ~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/environment.hpp:21: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:188:39: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 188 | else if (state.Row() == fruitTree.Depth()) | ~~ ~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:228:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 228 | arma::mat branches = zeros(rewardSize, (size_t) std::pow(2, depth - 1)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/environment/ftn.hpp:241:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 241 | return tree.col(GetIndex(state)); | ~~~ ^~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/policy.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/policy/greedy_policy.hpp:53:59: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 53 | delta(((initialEpsilon - minEpsilon) * decayRate) / annealInterval) | ~ ^~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/replay.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/replay/prioritized_replay.hpp:204:57: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 204 | const double mass = arma::randu() * sumPerRange + bt * sumPerRange; | ^~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:20: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/noise.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/noise/gaussian.hpp:48:40: warning: implicit conversion turns floating-point number into integer: 'const double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 48 | return sigma * randn(size) + mu; | ~~~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:73: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/reinforcement_learning.hpp:24: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning.hpp:188: /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:282:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 282 | projDist(l(j, batchNo), batchNo) += projDistUpper(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/reinforcement_learning/q_learning_impl.hpp:283:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned int') [-Wfloat-conversion] 283 | projDist(u(j, batchNo), batchNo) += projDistLower(j, batchNo); | ~~~~~~~~ ^~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:74: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression.hpp:355: /Users/ripley/R/Library/mlpack/include/mlpack/methods/softmax_regression/softmax_regression_impl.hpp:251:11: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 251 | return (count * 100.0) / predictions.n_elem; | ^~~~~ ~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp:167: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | parameters.randu(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:62:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | parameters.row(2 * hiddenSize).zeros(); | ~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:63:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 63 | parameters.col(visibleSize).zeros(); | ~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:71:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | (parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) - 0.5); | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:70:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | parameters.submat(0, 0, 2 * hiddenSize - 1, visibleSize - 1) = 2 * range * | ~~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:106:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:105:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 105 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:110:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:109:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:124:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | parameters.submat(0, 0, l3 - 1, l2 - 1)); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:123:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 123 | wL2SquaredNorm = accu(parameters.submat(0, 0, l3 - 1, l2 - 1) % | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:173:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 173 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:172:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 172 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:177:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | repmat(parameters.submat(l3, 0, l3, l2 - 1).t(), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:176:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | Sigmoid(parameters.submat(l1, 0, l3 - 1, l2 - 1).t() * hiddenLayer + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:197:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 197 | delHid = (parameters.submat(l1, 0, l3 - 1, l2 - 1) * delOut + | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:201:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 201 | gradient.zeros(2 * hiddenSize + 1, visibleSize + 1); | ~~~~~ ~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:207:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | lambda * parameters.submat(0, 0, l1 - 1, l2 - 1); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:206:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 206 | gradient.submat(0, 0, l1 - 1, l2 - 1) = delHid * data.t() / data.n_cols + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:210:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 210 | lambda * parameters.submat(l1, 0, l3 - 1, l2 - 1).t()).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:208:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 208 | gradient.submat(l1, 0, l3 - 1, l2 - 1) = | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:211:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | gradient.submat(0, l2, l1 - 1, l2) = sum(delHid, 1) / data.n_cols; | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_function_impl.hpp:212:19: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | gradient.submat(l3, 0, l3, l2 - 1) = (sum(delOut, 1) / data.n_cols).t(); | ~~~~~~ ^~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:75: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp:217: /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:81:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | repmat(parameters.submat(0, l2, l1 - 1, l2), 1, data.n_cols), | ~~~~~~ ^~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp:80:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | Sigmoid(parameters.submat(0, 0, l1 - 1, l2 - 1) * data + | ~~~~~~ ~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/generalized_rosenbrock_function_impl.hpp:25:27: note: in instantiation of function template specialization 'arma::linspace>' requested here 25 | visitationOrder(arma::linspace >(0, n - 1, n)) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:30: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/problems/rastrigin_function_impl.hpp:24:21: note: in instantiation of function template specialization 'arma::linspace>' requested here 24 | visitationOrder(linspace>(0, n - 1, n)) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:59: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:183:17: note: in instantiation of function template specialization 'ens::Proximal::ProjectToL1Ball>' requested here 183 | Proximal::ProjectToL1Ball(currentCoeffs, tau); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:128: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/frank_wolfe.hpp:15: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/update_full_correction.hpp:17: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/atoms.hpp:14: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal.hpp:58: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:50: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:49:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | simplexSum(0, col) = simplexSol(0, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:53:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | simplexSol(row, col); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:52:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 52 | simplexSum(row, col) = simplexSum(row - 1, col) + | ~~~~~~~~~~ ~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:62:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | nu = simplexSol(rho) - (simplexSum(rho) - tau) / (rho + 1); | ~~~~~~~~~~ ^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/fw/proximal/proximal_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | const double theta = (simplexSum(rho) - tau) / rho; | ~~~~~~~~~~ ^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:50: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename Gen, arma::gen_ones>::elem_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 79 | arma::ones(numObservations) / numObservations)) | ~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:47:30: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::DiscreteDistribution' requested here 47 | DiscreteDistribution<> d(1); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:79:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | arma::ones(numObservations) / numObservations)) | ~~~~ ^~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:29:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 29 | ObsVecType result(dimension); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/ann/augmented/tasks/add_impl.hpp:52:21: note: in instantiation of member function 'mlpack::DiscreteDistribution<>::Random' requested here 52 | sizeA = 2 + d.Random()(0); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution.hpp:270: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:40:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | if ((sumProb += probabilities[d][obs]) >= randObs) | ~~~~~~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:42:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | result[d] = ObsType(obs); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/discrete_distribution_impl.hpp:50:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | result[d] = ObsType(probabilities[d].n_elem - 1); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:200:34: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::Evaluate' requested here 200 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:70:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:73:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:74:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:75:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:78:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:77:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 77 | dot(parameters.col(user).subvec(0, rank - 1), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:82:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:83:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 83 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:54:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 54 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:100: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:55:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 55 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:59:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:60:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:61:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:62:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:35: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function.hpp:163: /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:35:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | initialPoint.randu(rank + 1, numUsers + numItems); | ~~~~~ ~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_function_impl.hpp:27:3: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Mat>' requested here 27 | MakeAlias(data, dataIn, dataIn.n_rows, dataIn.n_cols, false); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/bias_svd/bias_svd_impl.hpp:45:30: note: in instantiation of member function 'mlpack::BiasSVDFunction<>::BiasSVDFunction' requested here 45 | BiasSVDFunction biasSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/bias_svd_method.hpp:81:13: note: in instantiation of member function 'mlpack::BiasSVD<>::Apply' requested here 81 | biassvd.Apply(data, rank, w, h, p, q); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:64:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 64 | new (&m) OutMatType(newMem, numRows, numCols, false, strict); | ~~~~~~~~~~ ^~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:173:34: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::Evaluate' requested here 173 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 68 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:69:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:72:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:74:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 74 | parameters.col(item)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:73:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 73 | double ratingError = rating - dot(parameters.col(user), | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:78:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 78 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:79:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 79 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:51:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 51 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:97: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:52:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 52 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:55:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:56:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 56 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:30:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 30 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_impl.hpp:42:37: note: in instantiation of member function 'mlpack::RegularizedSVDFunction<>::RegularizedSVDFunction' requested here 42 | RegularizedSVDFunction rSVDFunc(data, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:76:12: note: in instantiation of member function 'mlpack::RegularizedSVD<>::Apply' requested here 76 | regsvd.Apply(data, rank, w, h); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/regularized_svd_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function.hpp:156: /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:31:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 31 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/regularized_svd/regularized_svd_function_impl.hpp:34:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 34 | initialPoint.randu(rank, numUsers + numItems); | ~~~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:38: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:308:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::Evaluate' requested here 308 | overallObjective += function.Evaluate(parameters, i); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:119:30: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 119 | regularizationError /= implicitCount; | ~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:82:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 82 | arma::vec implicitVecsNormSquare(numItems); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:25: warning: implicit conversion turns floating-point number into integer: 'const double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 88 | const size_t user = data(0, i); | ~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:88:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | const size_t user = data(0, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:89:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const size_t item = data(1, i) + numUsers; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:93:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | const double rating = data(2, i); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:94:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | const double userBias = parameters(rank, user); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:95:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | const double itemBias = parameters(rank, item); | ~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:99:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | arma::vec userVec(rank); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:100:62: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | arma::sp_mat::const_iterator it = implicitData.begin_col(user); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:101:64: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | arma::sp_mat::const_iterator it_end = implicitData.end_col(user); | ~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:106:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 106 | userVec += parameters.col(implicitStart + it.row()).subvec(0, rank - 1); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1)); | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:110:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | parameters.col(implicitStart + it.row()).subvec(0, rank - 1), | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:121:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 121 | userVec += parameters.col(user).subvec(0, rank - 1); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:124:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | dot(userVec, parameters.col(item).subvec(0, rank - 1)); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:128:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | double userVecNorm = norm(parameters.col(user), 2); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:129:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | double itemVecNorm = norm(parameters.col(item), 2); | ~~~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:83:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::CleanData' requested here 83 | svdpp.CleanData(implicitDenseData, implicitData, data); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:100:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 100 | locations(1, i) = ((arma::uword) implicitData(0, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:101:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 101 | locations(0, i) = ((arma::uword) implicitData(1, i)); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:102:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 102 | values(i) = 1; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:60: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:110:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 110 | cleanedData = arma::sp_mat(locations, values, maxItemID, maxUserID); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:60:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 60 | const size_t numUsers = max(data.row(0)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:150: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:61:44: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 61 | const size_t numItems = max(data.row(1)) + 1; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:65:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 65 | u = parameters.submat(0, numUsers, rank - 1, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:66:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 66 | v = parameters.submat(0, 0, rank - 1, numUsers - 1); | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | p = parameters.row(rank).subvec(numUsers, numUsers + numItems - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~~~~ ~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | q = parameters.row(rank).subvec(0, numUsers - 1).t(); | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:70:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ 70 | numUsers + 2 * numItems - 1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:69:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 69 | y = parameters.submat(0, numUsers + numItems, rank - 1, | ~~~~~~ ~~~~~~~~~^~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:34:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 34 | numUsers = max(data.row(0)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_impl.hpp:51:34: note: in instantiation of member function 'mlpack::SVDPlusPlusFunction<>::SVDPlusPlusFunction' requested here 51 | SVDPlusPlusFunction svdPPFunc(data, cleanedData, rank, lambda); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:86:11: note: in instantiation of member function 'mlpack::SVDPlusPlus<>::Apply' requested here 86 | svdpp.Apply(data, implicitDenseData, rank, w, h, p, q, y); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/decomposition_policies.hpp:22: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/decomposition_policies/svdplusplus_method.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function.hpp:170: /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:35:31: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename subview_row::elem_type>::result' (aka 'double') to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 35 | numItems = max(data.row(1)) + 1; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/svdplusplus/svdplusplus_function_impl.hpp:46:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | initialPoint.randu(rank + 1, numUsers + 2 * numItems); | ~~~~~ ~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:23: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:576: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ~~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1096:19: note: in instantiation of function template specialization 'mlpack::HRectBound<>::operator|=>' requested here 1096 | boundToUpdate |= dataset->cols(begin, begin + count - 1); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1026:3: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::UpdateBound>' requested here 1026 | UpdateBound(bound); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:570:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 570 | bounds[i] |= RangeType(mins[i], maxs[i]); | ~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:19: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:117:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:128:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 128 | data.swap_cols(left, right); | ~~~~~~~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:138:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 138 | while (SplitType::AssignToLeftNode(data.col(left), splitInfo) && | ~~~ ^~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:146:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 146 | while ((!SplitType::AssignToLeftNode(data.col(right), splitInfo)) && | ~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:116:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 116 | return point[splitInfo.splitDimension] < splitInfo.splitVal; | ~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/perform_split.hpp:115:22: note: in instantiation of function template specialization 'mlpack::MidpointSplit>::AssignToLeftNode>' requested here 115 | (SplitType::AssignToLeftNode(data.col(left), splitInfo))) | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/midpoint_split.hpp:102:20: note: in instantiation of function template specialization 'mlpack::PerformSplit, mlpack::MidpointSplit>>' requested here 102 | return mlpack::PerformSplit(data, begin, count, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1054:23: note: in instantiation of member function 'mlpack::MidpointSplit>::PerformSplit' requested here 1054 | splitCol = splitter.PerformSplit(*dataset, begin, count, splitInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:158:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | center.set_size(dim); | ~~~~~~~~ ^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:522:58: note: in instantiation of member function 'mlpack::HRectBound<>::Center' requested here 522 | void Center(arma::Col& center) const { bound.Center(center); } | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:1069:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::Center' requested here 1069 | Center(center); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:209:3: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SplitNode' requested here 209 | SplitNode(oldFromNew, maxLeafSize, splitter); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/build_tree.hpp:26:14: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::BinarySpaceTree' requested here 26 | return new TreeType(std::forward(dataset), oldFromNew); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:144:21: note: in instantiation of function template specialization 'mlpack::BuildTree, mlpack::NeighborSearchStat>, arma::Mat>' requested here 144 | referenceTree = BuildTree(std::move(MatType()), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:52:3: note: in instantiation of member function 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::NeighborSearch' requested here 52 | CosineSearch(const arma::mat& referenceSet) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:161:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 161 | center(i) = bounds[i].Mid(); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:490:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 490 | neighborPtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:37: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/cf.hpp:21: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search.hpp:496: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:491:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 491 | distancePtr->set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:592:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 592 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:593:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 593 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:598:23: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 598 | distances.col(oldFromNewQueries[i]) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:24: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:603:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 603 | neighbors(j, oldFromNewQueries[i]) = | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:604:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 604 | oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:615:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 615 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:616:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 616 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:622:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 622 | distances.col(queryMapping) = distancePtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:623:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 623 | neighbors.col(queryMapping) = neighborPtr->col(i); | ~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:633:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 633 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:638:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 638 | neighbors(j, i) = oldFromNewReferences[(*neighborPtr)(j, i)]; | ~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:97:52: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | referenceSet.col(referenceIndex)); | ~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:505:17: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::BaseCase' requested here 505 | rules.BaseCase(i, j); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:96:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | double dist = distance.Evaluate(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:67:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 67 | neighbors.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:509:13: note: in instantiation of function template specialization 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetResults' requested here 509 | rules.GetResults(*neighborPtr, *distancePtr); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:68:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | distances.set_size(k, querySet.n_cols); | ~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:75:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 75 | neighbors(k - j, i) = (IndexType) pqueue.top().second; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:76:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | distances(k - j, i) = pqueue.top().first; | ~~~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:61: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:211:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | lower = bounds[d].Lo() - point[d]; | ~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp:490:18: note: in instantiation of function template specialization 'mlpack::HRectBound<>::MinDistance>' requested here 490 | return bound.MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort_impl.hpp:55:25: note: in instantiation of function template specialization 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::MinDistance>' requested here 55 | return referenceNode->MinDistance(point); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:141:24: note: in instantiation of function template specialization 'mlpack::NearestNS::BestPointToNodeDistance, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>' requested here 141 | dist = SortPolicy::BestPointToNodeDistance(querySet.col(queryIndex), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp:67:37: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::Score' requested here 67 | const double rootScore = rule.Score(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:522:19: note: in instantiation of member function 'mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 522 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:61: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/tree.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/bounds.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound.hpp:264: /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/hrectbound_impl.hpp:212:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 212 | higher = point[d] - bounds[d].Hi(); | ~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/approx_kfn.hpp:17: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select.hpp:126: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/approx_kfn/drusilla_select_impl.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules.hpp:242: /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_rules_impl.hpp:158:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | return SortPolicy::GetBestChild(querySet.col(queryIndex), referenceNode); | ~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp:38:27: note: in instantiation of member function 'mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>::GetBestChild' requested here 38 | size_t bestChild = rule.GetBestChild(queryIndex, referenceNode); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/neighbor_search/neighbor_search_impl.hpp:571:19: note: in instantiation of member function 'mlpack::GreedySingleTreeTraverser, mlpack::NeighborSearchStat>, mlpack::NeighborSearchRules, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>>>::Traverse' requested here 571 | traverser.Traverse(i, *referenceTree); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/cf/neighbor_search_policies/cosine_search.hpp:75:20: note: in instantiation of function template specialization 'mlpack::NeighborSearch, arma::Mat, mlpack::KDTree, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::DualTreeTraverser, mlpack::BinarySpaceTree, mlpack::NeighborSearchStat>::SingleTreeTraverser>::Search' requested here 75 | neighborSearch.Search(normalizedQuery, k, neighbors, similarities); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/eigenvalue_ratio_constraint.hpp:38:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 38 | MakeAlias(const_cast(this->ratios), ratios, ratios.n_elem); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:58:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:32:22: note: in instantiation of member function 'mlpack::GaussianDistribution<>::GaussianDistribution' requested here 32 | dists(gaussians, GaussianDistribution<>(dimensionality)), | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:48: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:59:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 59 | covariance(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:46: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:60:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 60 | covLower(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:61:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | invCov(arma::eye(dimension, dimension)), | ~~~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution.hpp:200: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/gaussian_distribution_impl.hpp:85:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * v(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:68:18: note: in instantiation of member function 'mlpack::GaussianDistribution<>::LogProbability' requested here 68 | dists[i].LogProbability(observation)); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save.hpp:25: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/save_image.hpp:17: /Users/ripley/R/Library/mlpack/include/mlpack/core/math/make_alias.hpp:39:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | new (&v) OutVecType(newMem, numElems, false, strict); | ~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/gmm_impl.hpp:93:5: note: in instantiation of function template specialization 'mlpack::MakeAlias, arma::Col>' requested here 93 | MakeAlias(temp, logProb, observation.n_cols, logProb.n_rows * i); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:53:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | mean(arma::zeros(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:116:5: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::DiagonalGaussianDistribution' requested here 116 | DiagonalGaussianDistribution<>(dimensionality)), | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:54:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 54 | covariance(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:55:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | invCov(arma::ones(dimension)), | ~~~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:55:17: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 55 | return -0.5 * k * log2pi - 0.5 * logDetCov - 0.5 * logExponent(0); | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:151:18: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 151 | dists[i].LogProbability(observation)); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:58: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/distributions.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution.hpp:162: /Users/ripley/R/Library/mlpack/include/mlpack/core/distributions/diagonal_gaussian_distribution_impl.hpp:73:29: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 73 | logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents; | ~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/gmm/diagonal_gmm_impl.hpp:177:14: note: in instantiation of member function 'mlpack::DiagonalGaussianDistribution<>::LogProbability' requested here 177 | dists[i].LogProbability(observation, temp); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:10: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:41:5: note: in instantiation of member function 'ens::SDP>::SDP' requested here 41 | sdp(initialPoint.n_rows, numSparseConstraints, numDenseConstraints), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:25:5: note: in instantiation of member function 'ens::LRSDPFunction>>::LRSDPFunction' requested here 25 | function(numSparseConstraints, numDenseConstraints, initialPoint), | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:30:5: note: in instantiation of member function 'ens::LRSDP>>::LRSDP' requested here 30 | sdp(indices.n_cols, 0, randu(m + n, r)) | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:145: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp.hpp:164: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:44:7: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 44 | c(n, n), | ~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:46:13: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | sparseB(numSparseConstraints), | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:48:12: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 48 | denseB(numDenseConstraints) | ~~~~~~ ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:51:22: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 51 | sparseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/sdp_impl.hpp:53:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 53 | denseA[i].zeros(n, n); | ~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:126: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_impl.hpp:39:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | typename ForwardType::bvec lambda(function.NumConstraints()); | ~~~~~~ ~~~~~~~~~^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:159:16: warning: implicit conversion turns floating-point number into integer: 'typename Mat::elem_type' (aka 'double') to 'bool' [-Wfloat-conversion] 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:262: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:211:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 211 | augfunc.Lambda()[i] -= ElemType(augfunc.Sigma()) * p; | ~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:92:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | SDP().SparseB()[index]; | ~~~ ^~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian_impl.hpp:139:42: note: in instantiation of function template specialization 'ens::LRSDPFunction>>::EvaluateConstraint>' requested here 139 | const ElemType p = std::pow(function.EvaluateConstraint(i, coordinates), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:98:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 98 | - SDP().DenseB()[index1]; | ~~~ ^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:397:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 397 | BaseMatType newIterateTmp(rows, cols); | ~~~~~~~~~~~~~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:400:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 400 | BaseCubeType s(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:401:18: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 401 | BaseCubeType y(rows, cols, numBasis); | ~ ^~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:214:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 214 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:141:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 141 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:216:3: note: in instantiation of function template specialization 'ens::UpdateObjective, arma::Col, arma::Mat>' requested here 216 | UpdateObjective(objective, function.template RRT(), | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:263:10: note: in instantiation of function template specialization 'ens::EvaluateImpl>, arma::Mat, arma::Col>' requested here 263 | return EvaluateImpl(function, coordinates, lambda, sigma); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate.hpp:135:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Evaluate>' requested here 135 | GradType>*>(this))->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:187:55: note: in instantiation of member function 'ens::AddEvaluateConst>>, arma::Col>, arma::Mat, arma::Mat>::Evaluate' requested here 187 | GradType>*>(this)->Evaluate(coordinates); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:142:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 142 | objective -= (lambda[lambdaOffset + i] * constraint); | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:244:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 244 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:164:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | const double constraint = arma::accu(ais[i] % rrt) - bis[i]; | ~~~ ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:247:3: note: in instantiation of function template specialization 'ens::UpdateGradient, arma::Col, arma::Mat>' requested here 247 | UpdateGradient( | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:281:3: note: in instantiation of function template specialization 'ens::GradientImpl>, arma::Mat, arma::Col, arma::Mat>' requested here 281 | GradientImpl(function, coordinates, lambda, sigma, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_gradient.hpp:134:56: note: in instantiation of function template specialization 'ens::AugLagrangianFunction>>, arma::Col>::Gradient, arma::Mat>' requested here 134 | GradType>*>(this))->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/function/add_evaluate_with_gradient.hpp:190:51: note: in instantiation of member function 'ens::AddGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::Gradient' requested here 190 | GradType>*>(this)->Gradient(coordinates, | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:421:30: note: in instantiation of member function 'ens::AddEvaluateWithGradientConst>>, arma::Col>, arma::Mat, arma::Mat>::EvaluateWithGradient' requested here 421 | ElemType functionValue = f.EvaluateWithGradient(iterate, gradient); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 97 | return Optimize::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:146: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function.hpp:193: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/sdp/lrsdp_function_impl.hpp:165:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | const double y = lambda[lambdaOffset + i] - sigma * constraint; | ~~~~~~ ~~~~~~~~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 90 | int previousPos = (iterationNum - 1) % numBasis; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:460:30: note: in instantiation of function template specialization 'ens::L_BFGS::ChooseScalingFactor, arma::Cube>' requested here 460 | ElemType scalingFactor = ChooseScalingFactor(itNum, gradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:151:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 151 | BaseColType rho(numBasis); | ~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:477:5: note: in instantiation of function template specialization 'ens::L_BFGS::SearchDirection, arma::Cube>' requested here 477 | SearchDirection(gradient, itNum, scalingFactor, s, y, searchDirection); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:69: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/hpt/hpt.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen.hpp:115: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:18: In file included from /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:258: /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:152:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 152 | BaseColType alpha(numBasis); | ~~~~~ ^~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:157:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 157 | int translatedPosition = (i + (numBasis - 1)) % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:163:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 163 | rho[iterationNum - i] = (tmp != ElemType(0)) ? (1 / tmp) : 1; | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:165:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 165 | alpha[iterationNum - i] = rho[iterationNum - i] * | ~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:168:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 168 | searchDirection -= alpha[iterationNum - i] * yMat; | ~~~~~ ~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:175:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | int translatedPosition = i % numBasis; | ~~~~~~~~~~~~~~~~~~ ~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:176:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | ElemType beta = rho[iterationNum - i - 1] * | ~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:178:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | searchDirection += (alpha[iterationNum - i - 1] - beta) * | ~~~~~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:210:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | int overwritePos = iterationNum % numBasis; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs_impl.hpp:516:5: note: in instantiation of function template specialization 'ens::L_BFGS::UpdateBasisSet, arma::Mat, arma::Cube>' requested here 516 | UpdateBasisSet(itNum, iterate, oldIterate, gradient, oldGradient, s, y); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/lbfgs/lbfgs.hpp:97:12: note: in instantiation of function template specialization 'ens::L_BFGS::Optimize>>, arma::Col>, arma::Mat, arma::Mat>' requested here 97 | return Optimize>>, arma::Col>, arma::Mat>' requested here 159 | if (!lbfgs.Optimize(augfunc, coordinates, callbacks...)) | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:252:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 252 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 54 | return Optimize(augfunc, coordinates, callbacks...); | ^ /Users/ripley/R/Library/RcppEnsmallen/include/ensmallen_bits/aug_lagrangian/aug_lagrangian.hpp:167:12: note: in instantiation of function template specialization 'ens::AugLagrangianType<>::Optimize>>, arma::Mat, arma::Col, arma::Mat>' requested here 167 | return Optimize::Optimize>>, arma::Mat, arma::Col>' requested here 41 | augLag.Optimize(function, coordinates, lambda, sigma, callbacks...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/matrix_completion/matrix_completion_impl.hpp:105:7: note: in instantiation of function template specialization 'ens::LRSDP>>::Optimize>' requested here 105 | sdp.Optimize(recovered); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | train.set_size(input.n_rows, trainSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:316:5: note: in instantiation of function template specialization 'mlpack::SplitHelper>' requested here 316 | SplitHelper(input, trainData, testData, testRatio, order); | ^ randomForest.cpp:38:19: note: in instantiation of function template specialization 'mlpack::Split, arma::Row, void, void>' requested here 38 | mlpack::data::Split(dataset, labelsvec, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:40:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | test.set_size(input.n_rows, testSize); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:46:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | train = input.cols(order.subvec(0, trainSize - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:49:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | test = input.cols(order.subvec(trainSize, order.n_elem - 1)); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:55:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | train = input.cols(0, trainSize - 1); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:58:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | test = input.cols(trainSize, input.n_cols - 1); | ~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 39 | train.set_size(input.n_rows, trainSize); | ~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:317:5: note: in instantiation of function template specialization 'mlpack::SplitHelper>' requested here 317 | SplitHelper(inputLabel, trainLabel, testLabel, testRatio, order); | ^ randomForest.cpp:38:19: note: in instantiation of function template specialization 'mlpack::Split, arma::Row, void, void>' requested here 38 | mlpack::data::Split(dataset, labelsvec, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:49: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/data/data.hpp:44: /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:40:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 40 | test.set_size(input.n_rows, testSize); | ~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:46:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 46 | train = input.cols(order.subvec(0, trainSize - 1)); | ~~~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:49:38: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | test = input.cols(order.subvec(trainSize, order.n_elem - 1)); | ~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:55:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | train = input.cols(0, trainSize - 1); | ~~~~ ~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/data/split_data.hpp:58:25: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 58 | test = input.cols(trainSize, input.n_cols - 1); | ~~~~ ^~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:556:32: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 556 | double totalGain = avgGain * oldNumTrees; | ~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:622:31: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 622 | avgGain = totalGain / trees.size(); | ~ ~~~~~~^~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:270:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 270 | classProbabilities(numClasses) | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:38:49: note: in instantiation of member function 'mlpack::DecisionTree::DecisionTree' requested here 38 | return ::new (static_cast(__location)) _Tp(std::forward<_Args>(__args)...); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:643:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 643 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:643:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 643 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:641:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 641 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:641:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 641 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:660:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 660 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights, | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:660:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 660 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights, | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:658:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 658 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:658:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 658 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:672:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 672 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights, | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:672:41: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 672 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights, | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:670:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 670 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:670:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 670 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:712:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 712 | childAssignments[j - begin] = CategoricalSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:713:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 713 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:713:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 713 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:719:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 719 | childAssignments[j - begin] = NumericSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:720:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 720 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:720:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 720 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:745:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 745 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:745:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 745 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:748:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 748 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:748:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 748 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:784:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 784 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:784:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 784 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:782:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 782 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:782:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 782 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:640:47: note: in instantiation of function template specialization 'mlpack::GiniGain::Evaluate, arma::Row>' requested here 640 | double bestGain = FitnessFunction::template Evaluate( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:89:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const double weight1 = weights[i - 3]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | const double weight2 = weights[i - 2]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:91:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | const double weight3 = weights[i - 1]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:92:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | const double weight4 = weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:94:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:94:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:95:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:96:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:96:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:97:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:97:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:109:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:117:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:118:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:129:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:130:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:131:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:655:46: note: in instantiation of function template specialization 'mlpack::AllCategoricalSplit::SplitIfBetter, arma::subview_row, arma::Row>' requested here 655 | dimGain = CategoricalSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:41:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 41 | childWeightSums.zeros(numCategories); | ~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:45:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | counts[(size_t) data[i]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:45:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | counts[(size_t) data[i]]++; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:49:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | childWeightSums[(size_t) data[i]] += weights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:49:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | childWeightSums[(size_t) data[i]] += weights[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:49:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | childWeightSums[(size_t) data[i]] += weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:50:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | sumWeight += weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:70:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 70 | childWeights[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:76:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const size_t category = (size_t) data[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:80:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | childLabels[category][childPositions[category]] = labels[i]; | ~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:80:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | childLabels[category][childPositions[category]] = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:81:45: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | childWeights[category][childPositions[category]++] = weights[i]; | ~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:81:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | childWeights[category][childPositions[category]++] = weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:94:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | double(childWeightSums[i]) / sumWeight : | ~~~~~~~~~~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:96:56: note: in instantiation of function template specialization 'mlpack::GiniGain::Evaluate, arma::Row>' requested here 96 | const double childGain = FitnessFunction::template Evaluate( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:655:46: note: in instantiation of function template specialization 'mlpack::AllCategoricalSplit::SplitIfBetter, arma::subview_row, arma::Row>' requested here 655 | dimGain = CategoricalSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:89:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 89 | const double weight1 = weights[i - 3]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:90:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 90 | const double weight2 = weights[i - 2]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:91:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 91 | const double weight3 = weights[i - 1]; | ~~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:92:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 92 | const double weight4 = weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:94:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts[labels[i - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:94:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 94 | counts[labels[i - 3]] += weight1; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:95:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts2[labels[i - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:95:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | counts2[labels[i - 2]] += weight2; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:96:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | counts3[labels[i - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:96:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 96 | counts3[labels[i - 1]] += weight3; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:97:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | counts4[labels[i]] += weight4; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:97:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 97 | counts4[labels[i]] += weight4; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:109:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 109 | counts[labels[labels.n_elem - 1]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:117:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 117 | counts[labels[labels.n_elem - 2]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:118:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | counts2[labels[labels.n_elem - 1]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:129:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 129 | counts[labels[labels.n_elem - 3]] += weight1; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:130:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 130 | counts2[labels[labels.n_elem - 2]] += weight2; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:131:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 131 | counts3[labels[labels.n_elem - 1]] += weight3; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:147:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 147 | const double f = ((double) counts[i] / (double) accWeights[0]); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:668:42: note: in instantiation of function template specialization 'mlpack::BestBinaryNumericSplit::SplitIfBetter, arma::Row>' requested here 668 | dimGain = NumericSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:55:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | sortedWeights[i] = weights[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:55:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 55 | sortedWeights[i] = weights[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:72:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 72 | classWeightSums.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:80:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 80 | classWeightSums(sortedLabels[i], 0) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:81:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 81 | totalLeftWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:87:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | classWeightSums(sortedLabels[i], 1) += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:88:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 88 | totalRightWeight += sortedWeights[i]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:111:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 111 | classWeightSums(sortedLabels[index - 1], 1) -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:112:74: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | classWeightSums(sortedLabels[index - 1], 0) += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:113:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 113 | totalLeftWeight += sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:114:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | totalRightWeight -= sortedWeights[index - 1]; | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:158:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:157:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:164:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:167:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:178:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:177:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:185:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:188:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1145:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1145 | classProbabilities.zeros(numClasses); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:781:5: note: in instantiation of function template specialization 'mlpack::DecisionTree::CalculateClassProbabilities, arma::Row>' requested here 781 | CalculateClassProbabilities( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:557:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 557 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:591:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 591 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1151:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1151 | classProbabilities[labels[i]] += weights[i]; | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1151:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1151 | classProbabilities[labels[i]] += weights[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1151:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1151 | classProbabilities[labels[i]] += weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1152:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1152 | sumWeights += weights[i]; | ~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:829:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 829 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:601:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 601 | return Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:598:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row, arma::Row>' requested here 598 | trees[oldNumTrees + i].Train(bootstrapDataset, bootstrapLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:829:35: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 829 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:843:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 843 | weights.cols(begin, begin + count - 1) : | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:843:54: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 843 | weights.cols(begin, begin + count - 1) : | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:878:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments[j - begin] = NumericSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:906:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 906 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:906:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 906 | weights.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:941:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 941 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:941:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 941 | UseWeights ? weights.subvec(begin, begin + count - 1) : weights); | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:641:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 641 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:641:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 641 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:658:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 658 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:658:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 658 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:656:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 656 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:670:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 670 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:670:27: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 670 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:669:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 669 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:708:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 708 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:712:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 712 | childAssignments[j - begin] = CategoricalSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:713:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 713 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:713:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 713 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:719:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 719 | childAssignments[j - begin] = NumericSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:720:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 720 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:720:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 720 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:725:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 725 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:727:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 727 | childCounts[childAssignments[i - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:742:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 742 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:744:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 744 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:745:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 745 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:745:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 745 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:746:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 746 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:769:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 769 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:782:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 782 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:782:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 782 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:640:47: note: in instantiation of function template specialization 'mlpack::GiniGain::Evaluate, arma::Row>' requested here 640 | double bestGain = FitnessFunction::template Evaluate( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:166:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:170:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:171:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:175:16: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:177:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:184:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:106:20: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 106 | splitInfo[0] = numCategories; | ~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:655:46: note: in instantiation of function template specialization 'mlpack::AllCategoricalSplit::SplitIfBetter, arma::subview_row, arma::Row>' requested here 655 | dimGain = CategoricalSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:15: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split.hpp:138: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:35:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 35 | arma::Col counts(numCategories); | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:45:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | counts[(size_t) data[i]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:45:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | counts[(size_t) data[i]]++; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:61:29: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 61 | arma::uvec childPositions(numCategories); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:68:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 68 | childLabels[i].zeros(counts[i]); | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:76:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 76 | const size_t category = (size_t) data[i]; | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:85:44: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | childLabels[category][childPositions[category]++] = labels[i]; | ~~~~~~~~~~~~~~ ^~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:85:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 85 | childLabels[category][childPositions[category]++] = labels[i]; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:95:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 95 | double(counts[i]) / double(data.n_elem); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:71:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 71 | arma::vec countSpace(4 * numClasses), counts, counts2, counts3, counts4; | ~~~~~~~~~~ ~~^~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp:96:56: note: in instantiation of function template specialization 'mlpack::GiniGain::Evaluate, arma::Row>' requested here 96 | const double childGain = FitnessFunction::template Evaluate( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:655:46: note: in instantiation of function template specialization 'mlpack::AllCategoricalSplit::SplitIfBetter, arma::subview_row, arma::Row>' requested here 655 | dimGain = CategoricalSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:18: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/fitness_functions.hpp:15: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:157:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | counts[labels[i - 3]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:158:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | counts2[labels[i - 2]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:159:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 159 | counts3[labels[i - 1]]++; | ~~~~~~ ~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:160:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 160 | counts4[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:166:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 166 | counts[labels[labels.n_elem - 1]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:170:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 170 | counts[labels[labels.n_elem - 2]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:171:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 171 | counts2[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:175:16: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 175 | counts[labels[labels.n_elem - 3]]++; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:176:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 176 | counts2[labels[labels.n_elem - 2]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:177:17: warning: implicit conversion loses integer precision: 'const unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | counts3[labels[labels.n_elem - 1]]++; | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/fitness_functions/gini_gain.hpp:184:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 184 | const double f = ((double) counts[i] / (double) labels.n_elem); | ~~~~~~ ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:668:42: note: in instantiation of function template specialization 'mlpack::BestBinaryNumericSplit::SplitIfBetter, arma::Row>' requested here 668 | dimGain = NumericSplit::template SplitIfBetter(bestGain, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:19: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/splits.hpp:16: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp:191: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:42:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 42 | sortedLabels[i] = labels[sortedIndices[i]]; | ~~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:93:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 93 | classCounts.zeros(numClasses, 2); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:99:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 99 | ++classCounts(sortedLabels[i], 0); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:103:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 103 | ++classCounts(sortedLabels[i], 1); | ~~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:118:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 118 | --classCounts(sortedLabels[index - 1], 1); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:119:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 119 | ++classCounts(sortedLabels[index - 1], 0); | ~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:122:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 122 | if (data[sortedIndices[index - 1]] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:158:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 158 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:157:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 157 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:164:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 164 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:167:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 167 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:178:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 178 | data[sortedIndices[index]]) / 2.0; | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:177:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 177 | splitInfo[0] = (data[sortedIndices[index - 1]] + | ~~~~~~~~~~~~~ ~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:185:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 185 | if (splitInfo[0] == data[sortedIndices[index]]) | ~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp:188:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 188 | data[sortedIndices[index - 1]]); | ~~~~~~~~~~~~~ ~~~~~~^~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1145:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1145 | classProbabilities.zeros(numClasses); | ~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:781:5: note: in instantiation of function template specialization 'mlpack::DecisionTree::CalculateClassProbabilities, arma::Row>' requested here 781 | CalculateClassProbabilities( | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:472:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 472 | return Train(tmpData, 0, tmpData.n_cols, datasetInfo, tmpLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:608:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 608 | trees[oldNumTrees + i].Train(bootstrapDataset, datasetInfo, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1156:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1156 | classProbabilities[labels[i]]++; | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1156:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1156 | classProbabilities[labels[i]]++; | ~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:512:10: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 512 | return Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:615:36: note: in instantiation of function template specialization 'mlpack::DecisionTree::Train, arma::Row>' requested here 615 | trees[oldNumTrees + i].Train(bootstrapDataset, bootstrapLabels, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:71:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::TrainInternal, arma::Row, arma::Row>' requested here 71 | TrainInternal(dataset, info, labels, numClasses, weights, | ^ randomForest.cpp:43:26: note: in instantiation of function template specialization 'mlpack::RandomForest<>::RandomForest, arma::Row>' requested here 43 | mlpack::RandomForest rf(trainSet, trainLabels, | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:827:21: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 827 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:840:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 840 | labels.cols(begin, begin + count - 1), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:839:47: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 839 | data.cols(begin, begin + count - 1).row(i), | ~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:874:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 874 | arma::Row childAssignments(count); | ~~~~~~~~~~~~~~~~ ^~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:878:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 878 | childAssignments[j - begin] = NumericSplit::CalculateDirection( | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:879:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 879 | data(bestDim, j), classProbabilities, *this); | ~~~~ ^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:883:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 883 | arma::Row childCounts(numChildren); | ~~~~~~~~~~~ ^~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:886:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 886 | childCounts[childAssignments[j - begin]]++; | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:900:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 900 | if (childAssignments[j - begin] == i) | ~~~~~~~~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:902:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 902 | childAssignments.swap_cols(currentCol - begin, j - begin); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:903:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 903 | data.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:904:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 904 | labels.swap_cols(currentCol, j); | ~~~~~~~~~ ^~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:927:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 927 | bestGain += double(childCounts[i]) / double(count) * (-childGain); | ~~~~~~~~~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:939:23: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 939 | labels.subvec(begin, begin + count - 1), | ~~~~~~ ^~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:436:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 436 | predictions[i] = Classify(data.col(i)); | ~~~~~~~~~~~ ^ randomForest.cpp:48:8: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 48 | rf.Classify(testSet, output); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:436:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 436 | predictions[i] = Classify(data.col(i)); | ~~~ ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:396:26: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 396 | probabilities /= trees.size(); | ~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:350:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 350 | Classify(point, predictedClass, probabilities); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:436:22: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 436 | predictions[i] = Classify(data.col(i)); | ^ randomForest.cpp:48:8: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 48 | rf.Classify(testSet, output); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:68: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest.hpp:494: /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:385:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 385 | probabilities.zeros(trees[0].NumClasses()); | ~~~~~ ~~~~~~~~~^~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1103:55: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1103 | return CategoricalSplit::CalculateDirection(point[splitDimension], | ~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:991:12: note: in instantiation of function template specialization 'mlpack::DecisionTree::CalculateDirection>' requested here 991 | children[CalculateDirection(point)]->Classify(point, prediction, | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:390:14: note: in instantiation of function template specialization 'mlpack::DecisionTree::Classify>' requested here 390 | trees[i].Classify(point, treePrediction, treeProbs); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:350:3: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 350 | Classify(point, predictedClass, probabilities); | ^ /Users/ripley/R/Library/mlpack/include/mlpack/methods/random_forest/random_forest_impl.hpp:436:22: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 436 | predictions[i] = Classify(data.col(i)); | ^ randomForest.cpp:48:8: note: in instantiation of function template specialization 'mlpack::RandomForest<>::Classify>' requested here 48 | rf.Classify(testSet, output); | ^ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:30: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost.hpp:14: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/adaboost/adaboost.hpp:33: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree.hpp:606: /Users/ripley/R/Library/mlpack/include/mlpack/methods/decision_tree/decision_tree_impl.hpp:1106:51: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 1106 | return NumericSplit::CalculateDirection(point[splitDimension], | ~~~~~ ^~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:40: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:587:16: warning: unused function 'drmp3_version' [-Wunused-function] 587 | DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:602:23: warning: unused function 'drmp3_version_string' [-Wunused-function] 602 | DRMP3_API const char* drmp3_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:2388:16: warning: unused function 'drmp3dec_f32_to_s16' [-Wunused-function] 2388 | DRMP3_API void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, size_t num_samples) | ^~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4057:24: warning: unused function 'drmp3_init_file_w' [-Wunused-function] 4057 | DRMP3_API drmp3_bool32 drmp3_init_file_w(drmp3* pMP3, const wchar_t* pFilePath, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4526:24: warning: 'static' function 'drmp3_get_pcm_frame_count' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 4526 | DRMP3_API drmp3_uint64 drmp3_get_pcm_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4560:24: warning: unused function 'drmp3_get_mp3_frame_count' [-Wunused-function] 4560 | DRMP3_API drmp3_uint64 drmp3_get_mp3_frame_count(drmp3* pMP3) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4591:24: warning: unused function 'drmp3_calculate_seek_points' [-Wunused-function] 4591 | DRMP3_API drmp3_bool32 drmp3_calculate_seek_points(drmp3* pMP3, drmp3_uint32* pSeekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4731:24: warning: unused function 'drmp3_bind_seek_table' [-Wunused-function] 4731 | DRMP3_API drmp3_bool32 drmp3_bind_seek_table(drmp3* pMP3, drmp3_uint32 seekPointCount, drmp3_seek_point* pSeekPoints) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4890:18: warning: unused function 'drmp3_open_and_read_pcm_frames_f32' [-Wunused-function] 4890 | DRMP3_API float* drmp3_open_and_read_pcm_frames_f32(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4900:24: warning: unused function 'drmp3_open_and_read_pcm_frames_s16' [-Wunused-function] 4900 | DRMP3_API drmp3_int16* drmp3_open_and_read_pcm_frames_s16(drmp3_read_proc onRead, drmp3_seek_proc onSeek, drmp3_tell_proc onTell, void* pUserData, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4911:18: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 4911 | DRMP3_API float* drmp3_open_memory_and_read_pcm_frames_f32(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4921:24: warning: unused function 'drmp3_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 4921 | DRMP3_API drmp3_int16* drmp3_open_memory_and_read_pcm_frames_s16(const void* pData, size_t dataSize, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4933:18: warning: unused function 'drmp3_open_file_and_read_pcm_frames_f32' [-Wunused-function] 4933 | DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_mp3.h:4943:24: warning: unused function 'drmp3_open_file_and_read_pcm_frames_s16' [-Wunused-function] 4943 | DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16(const char* filePath, drmp3_config* pConfig, drmp3_uint64* pTotalFrameCount, const drmp3_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:38: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/audio.hpp:68: /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1476:16: warning: unused function 'drwav_version' [-Wunused-function] 1476 | DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision) | ^~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:1491:23: warning: unused function 'drwav_version_string' [-Wunused-function] 1491 | DRWAV_API const char* drwav_version_string(void) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3019:24: warning: unused function 'drwav_fmt_get_format' [-Wunused-function] 3019 | DRWAV_API drwav_uint16 drwav_fmt_get_format(const drwav_fmt* pFMT) | ^~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3891:24: warning: unused function 'drwav_init_with_metadata' [-Wunused-function] 3891 | DRWAV_API drwav_bool32 drwav_init_with_metadata(drwav* pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4636:24: warning: unused function 'drwav_init_write' [-Wunused-function] 4636 | DRWAV_API drwav_bool32 drwav_init_write(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4654:24: warning: unused function 'drwav_init_write_sequential_pcm_frames' [-Wunused-function] 4654 | DRWAV_API drwav_bool32 drwav_init_write_sequential_pcm_frames(drwav* pWav, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, drwav_write_proc onWrite, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4663:24: warning: unused function 'drwav_init_write_with_metadata' [-Wunused-function] 4663 | DRWAV_API drwav_bool32 drwav_init_write_with_metadata(drwav* pWav, const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData, const drwav_allocation_callbacks* pAllocationCallbacks, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:4676:24: warning: unused function 'drwav_target_write_size_bytes' [-Wunused-function] 4676 | DRWAV_API drwav_uint64 drwav_target_write_size_bytes(const drwav_data_format* pFormat, drwav_uint64 totalFrameCount, drwav_metadata* pMetadata, drwav_uint32 metadataCount) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:3900:27: warning: unused function 'drwav_take_ownership_of_metadata' [-Wunused-function] 3900 | DRWAV_API drwav_metadata* drwav_take_ownership_of_metadata(drwav* pWav) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5997:24: warning: unused function 'drwav_seek_to_pcm_frame' [-Wunused-function] 5997 | DRWAV_API drwav_bool32 drwav_seek_to_pcm_frame(drwav* pWav, drwav_uint64 targetFrameIndex) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6107:24: warning: unused function 'drwav_get_cursor_in_pcm_frames' [-Wunused-function] 6107 | DRWAV_API drwav_result drwav_get_cursor_in_pcm_frames(drwav* pWav, drwav_uint64* pCursor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6124:24: warning: unused function 'drwav_get_length_in_pcm_frames' [-Wunused-function] 6124 | DRWAV_API drwav_result drwav_get_length_in_pcm_frames(drwav* pWav, drwav_uint64* pLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:6253:24: warning: unused function 'drwav_write_pcm_frames' [-Wunused-function] 6253 | DRWAV_API drwav_uint64 drwav_write_pcm_frames(drwav* pWav, drwav_uint64 framesToWrite, const void* pData) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7012:24: warning: unused function 'drwav_read_pcm_frames_s16le' [-Wunused-function] 7012 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16le(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7022:24: warning: unused function 'drwav_read_pcm_frames_s16be' [-Wunused-function] 7022 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s16be(drwav* pWav, drwav_uint64 framesToRead, drwav_int16* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7465:24: warning: unused function 'drwav_read_pcm_frames_f32le' [-Wunused-function] 7465 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32le(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7475:24: warning: unused function 'drwav_read_pcm_frames_f32be' [-Wunused-function] 7475 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_f32be(drwav* pWav, drwav_uint64 framesToRead, float* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7948:24: warning: unused function 'drwav_read_pcm_frames_s32le' [-Wunused-function] 7948 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32le(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:7958:24: warning: unused function 'drwav_read_pcm_frames_s32be' [-Wunused-function] 7958 | DRWAV_API drwav_uint64 drwav_read_pcm_frames_s32be(drwav* pWav, drwav_uint64 framesToRead, drwav_int32* pBufferOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5367:24: warning: unused function 'drwav_init_file_with_metadata' [-Wunused-function] 5367 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata(drwav* pWav, const char* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5379:24: warning: unused function 'drwav_init_file_with_metadata_w' [-Wunused-function] 5379 | DRWAV_API drwav_bool32 drwav_init_file_with_metadata_w(drwav* pWav, const wchar_t* filename, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5435:24: warning: 'static' function 'drwav_init_file_write' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 5435 | DRWAV_API drwav_bool32 drwav_init_file_write(drwav* pWav, const char* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5445:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames' [-Wunused-function] 5445 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames(drwav* pWav, const char* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5455:24: warning: unused function 'drwav_init_file_write_w' [-Wunused-function] 5455 | DRWAV_API drwav_bool32 drwav_init_file_write_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5465:24: warning: unused function 'drwav_init_file_write_sequential_pcm_frames_w' [-Wunused-function] 5465 | DRWAV_API drwav_bool32 drwav_init_file_write_sequential_pcm_frames_w(drwav* pWav, const wchar_t* filename, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5635:24: warning: unused function 'drwav_init_memory_with_metadata' [-Wunused-function] 5635 | DRWAV_API drwav_bool32 drwav_init_memory_with_metadata(drwav* pWav, const void* data, size_t dataSize, drwav_uint32 flags, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5675:24: warning: unused function 'drwav_init_memory_write' [-Wunused-function] 5675 | DRWAV_API drwav_bool32 drwav_init_memory_write(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:5685:24: warning: unused function 'drwav_init_memory_write_sequential_pcm_frames' [-Wunused-function] 5685 | DRWAV_API drwav_bool32 drwav_init_memory_write_sequential_pcm_frames(drwav* pWav, void** ppData, size_t* pDataSize, const drwav_data_format* pFormat, drwav_uint64 totalPCMFrameCount, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8213:24: warning: unused function 'drwav_open_and_read_pcm_frames_s16' [-Wunused-function] 8213 | DRWAV_API drwav_int16* drwav_open_and_read_pcm_frames_s16(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8234:18: warning: unused function 'drwav_open_and_read_pcm_frames_f32' [-Wunused-function] 8234 | DRWAV_API float* drwav_open_and_read_pcm_frames_f32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8255:24: warning: unused function 'drwav_open_and_read_pcm_frames_s32' [-Wunused-function] 8255 | DRWAV_API drwav_int32* drwav_open_and_read_pcm_frames_s32(drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_tell_proc onTell, void* pUserData, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8277:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16' [-Wunused-function] 8277 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8298:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32' [-Wunused-function] 8298 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8319:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32' [-Wunused-function] 8319 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32(const char* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8342:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s16_w' [-Wunused-function] 8342 | DRWAV_API drwav_int16* drwav_open_file_and_read_pcm_frames_s16_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8363:18: warning: unused function 'drwav_open_file_and_read_pcm_frames_f32_w' [-Wunused-function] 8363 | DRWAV_API float* drwav_open_file_and_read_pcm_frames_f32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8384:24: warning: unused function 'drwav_open_file_and_read_pcm_frames_s32_w' [-Wunused-function] 8384 | DRWAV_API drwav_int32* drwav_open_file_and_read_pcm_frames_s32_w(const wchar_t* filename, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8407:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s16' [-Wunused-function] 8407 | DRWAV_API drwav_int16* drwav_open_memory_and_read_pcm_frames_s16(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8428:18: warning: unused function 'drwav_open_memory_and_read_pcm_frames_f32' [-Wunused-function] 8428 | DRWAV_API float* drwav_open_memory_and_read_pcm_frames_f32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8449:24: warning: unused function 'drwav_open_memory_and_read_pcm_frames_s32' [-Wunused-function] 8449 | DRWAV_API drwav_int32* drwav_open_memory_and_read_pcm_frames_s32(const void* data, size_t dataSize, unsigned int* channelsOut, unsigned int* sampleRateOut, drwav_uint64* totalFrameCountOut, const drwav_allocation_callbacks* pAllocationCallbacks) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8507:23: warning: unused function 'drwav_bytes_to_s32' [-Wunused-function] 8507 | DRWAV_API drwav_int32 drwav_bytes_to_s32(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/audio/bundled/dr_wav.h:8519:23: warning: unused function 'drwav_bytes_to_s64' [-Wunused-function] 8519 | DRWAV_API drwav_int64 drwav_bytes_to_s64(const drwav_uint8* data) | ^~~~~~~~~~~~~~~~~~ In file included from randomForest.cpp:3: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.h:50: In file included from /Users/ripley/R/Library/mlpack/include/mlpack.hpp:27: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core.hpp:39: In file included from /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/stb.hpp:80: /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1215:14: warning: 'static' function 'stbi_write_png' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1215 | STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:520:14: warning: 'static' function 'stbi_write_bmp' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 520 | STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:619:14: warning: 'static' function 'stbi_write_tga' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 619 | STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:794:14: warning: unused function 'stbi_write_hdr' [-Wunused-function] 794 | STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1616:14: warning: 'static' function 'stbi_write_jpg' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration] 1616 | STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1231:14: warning: unused function 'stbi_write_png_to_func' [-Wunused-function] 1231 | STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:512:14: warning: unused function 'stbi_write_bmp_to_func' [-Wunused-function] 512 | STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:611:14: warning: unused function 'stbi_write_tga_to_func' [-Wunused-function] 611 | STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:787:14: warning: unused function 'stbi_write_hdr_to_func' [-Wunused-function] 787 | STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:1607:14: warning: unused function 'stbi_write_jpg_to_func' [-Wunused-function] 1607 | STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality) | ^~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/mlpack/include/mlpack/core/stb/bundled/stb_image_write.h:262:15: warning: unused function 'stbi_flip_vertically_on_write' [-Wunused-function] 262 | STBIWDEF void stbi_flip_vertically_on_write(int flag) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2519 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o rcppmlpackexamples.so RcppExports.o kMeans.o linearRegression.o loadDefaultPrediction.o randomForest.o -L/Users/ripley/R/R-devel/lib -lRlapack -L/Users/ripley/R/R-devel/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -L/Users/ripley/R/R-devel/lib -lR installing to /Users/ripley/R/packages/tests-devel/rcppmlpackexamples.Rcheck/00LOCK-rcppmlpackexamples/00new/rcppmlpackexamples/libs ** R ** data ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** 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 (rcppmlpackexamples)