* installing *source* package ‘Rfast2’ ... ** this is package ‘Rfast2’ version ‘0.1.5.5’ ** package ‘Rfast2’ successfully unpacked and MD5 sums checked ** using staged installation ** libs specified C++17 using C compiler: ‘Apple clang version 21.0.0 (clang-2100.0.121.2)’ using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.0.121.2)’ using C++17 using SDK: ‘MacOSX26.4.sdk’ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Eval.cpp -o Eval.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Random.cpp -o Random.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c add_term.cpp -o add_term.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c calc_qpois_regs.cpp -o calc_qpois_regs.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c censweib_reg.cpp -o censweib_reg.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c col_row_utilities.cpp -o col_row_utilities.o In file included from Random.cpp:1: 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:31: 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 Random.cpp:1: 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 Random.cpp:2: In file included from ./Random.h:9: /Users/ripley/R/Library/zigg/include/zigg/header:170:38: warning: implicit conversion turns floating-point number into integer: 'double' to 'uint32_t' (aka 'unsigned int') [-Wfloat-conversion] 170 | ke[0] = (uint32_t) (de/q)*m2; | ~ ~~~~~~~~~~~~~~~~~^~~ /Users/ripley/R/Library/zigg/include/zigg/header:181:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'uint32_t' (aka 'unsigned int') [-Wfloat-conversion] 181 | ke[i+1] = (de/te) * m2; | ~ ~~~~~~~~^~~~ In file included from Random.cpp:2: ./Random.h:50:61: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'result_type' (aka 'unsigned int') [-Wshorten-64-to-32] 50 | result_type xorshifted = ((oldstate >> 18u) ^ oldstate) >> 27u; | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ Random.cpp:45:42: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'result_type' (aka 'unsigned int') [-Wshorten-64-to-32] 45 | uniform rng(0, x.size() - 1); | ~~~ ~~~~~~~~~^~~ Random.cpp:53:36: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 53 | uniform rng(0, x.size() - 1); | ~~~ ~~~~~~~~~^~~ In file included from Random.cpp:2: ./Random.h:86:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'result_type' (aka 'unsigned int') [-Wshorten-64-to-32] 86 | this->remove_index(index); | ~~~~~~~~~~~~ ^~~~~ Random.cpp:34:16: note: in instantiation of member function 'Random::uniform>::operator()' requested here 34 | res[i] = rng(); | ^ In file included from Random.cpp:2: ./Random.h:87:11: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'result_type' (aka 'unsigned int') [-Wshorten-64-to-32] 87 | return res; | ~~~~~~ ^~~ In file included from calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadilloIn file included from col_row_utilities.cpp:2In file included from In file included from : add_term.cpp:4In file included from : :431Eval.cpp791 | : : /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:c:ons3In file included from : In file included from 431/Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40:32 warning: t/Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.himplicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion]: :In file included from : v 32431/Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:5732: In file included from : ec: in | d/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo In file included from cIn file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.honsit/Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h::57c es:: v57ecIn file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo : 791:: i/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:791 = rengs: 431In file included from d:/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:ic40: pwarning: 40implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion]:431: e40 :431: aces warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] < 431ve | = | warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] r cc>o(ne gsp ace<1,m431v-1)estc>( c | ve 1 ccons otind; i n cseves| t ~~~~~~~~ ~^~ , = vecm-1c ) ;ind ire | cg e ~~~~~~~~ ~^~s =s regspace(1,m-1)ces ec= >; | ~~~~~~~~ ~^~(1 ,m-1); | ~~~~~~~~ ~^~ regspace(1,m-1); | ~~~~~~~~ ~^~ 20 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c colbeta_mle.cpp -o colbeta_mle.o In file included from col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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; | ~^ In file included from add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104::31: 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] 14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ 104 | /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] s /= n; // 44 | s += t/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 calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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; | In file included from Eval.cpp:3: In file included from In file included from ~~ ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.hcensweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20:::14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | 35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.hwarning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] : 44 | s /= n79 : In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h; :31: In file included from | ~~ ^ s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h/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]:38: : 1468 : warning: warning: | implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | 44 | s / s /= n ;= n ; | ~~ ^ | ~~ ^ s += t/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 | /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20 si /=: nwarning: 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:77:20: /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] warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ 77 | /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] s + 69= t/n; | ~^ | si //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] = n; | ~~ ^ 78 | si += ti/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; /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] // no overf 68lo | /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:w co14: warning: rre implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] s 104 | /= c n; tio | n n ~~ ^ eeded /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:s15: warning: /= nfimplicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion]/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h :;68:14: 69 | owarning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] r l o si /= gica l vecto rs n; | ~~ ^68 | | // no ~~ ^ s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:o/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h77:20v:: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion]69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h: er122 f 69 | 77 | l :o14w : warning: cimplicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] o rr e c 122 | t ion s i / =s nn;eed += s e | ~~ ^t/ d n;fo /= | ~^ r/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h: logicaln/Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:7778 ;v:22 :20: ewarning: : warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] | ~~ ^ implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] cto 77rs | ~~ ^ | s += t/n; 78 | /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] /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h : 122 /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h::s7812814 | :22:: i s += warning: +warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion]implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] = 78 | t/n ; | t i ~^/ 122 | n; s s | ~^i += t/= ni/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 | /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 | /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 / = s /= n; n ; s += t / n; // // no o | verflow ~^ no overfl correctioon neew correction needed for logical vectors ded 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; | ~^ /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 col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 | In file included from calc_qpois_regs.cpp s /= n; | ~~ ^ :3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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: | ~~ ^ 435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435/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; | ~ ^ 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 censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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] In file included from add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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; | ~ ^~ 45 | j[ie] = cp; | ~ ^~ In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 censweib_reg.cpp:5: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ 41 | return value; | ~~~~~~ ^~~~~ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 Eval.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ calc_qpois_regs.cpp:6:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 6 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~ ~~^~~~~~ calc_qpois_regs.cpp:6:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 6 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~~~~~ ~~^~~~~~ In file included from add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from censweib_reg.cpp:5: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T In file included from Eval.cpp:8: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:1085:17: *) DATAPTR(x),*xend=xxDATAPTR(x),*xend+ncol*nrow,*yy=(T *) DAerror: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) TAPT=xDRx+ncol*nrow,*yy=(T *) ATAPTR(x),*xend=xx+ncol*nDATAPTR(y),yvalue,*x3; | (y),yvalue,*x3; | ^~~~~~~ ^~~~~~~ row,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAP../inst/include/Rfast2/templates.h:1085:57: error: ../inst/include/Rfast2/templates.h:use of undeclared identifier 'DATAPTR' 1085:57: error: use of undeclared identifier 'DATAPTR' TR(y ),yval 1085ue,*x1085 | | T T *xx=(T *) DA3; | ^~~~~~~ TAPTR(x),*xend=xx+ncol*nrow,**xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ Eval.cpp:32:29: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 32 | NumericMatrix res(exprs.length(),3); | ~~~ ~~~~~~^~~~~~~~ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:16: ../inst/include/Rfast2/helpers.hpp:236:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 236 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:262:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 262 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:289:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 289 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ censweib_reg.cpp:16:54: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 16 | int n = X.nrow(), p = X.ncol(),i,j, n1=0,disz = di.size(); | ~~~~ ~~~^~~~~~ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: ../inst/include/Rfast2/matrix.hpp:61:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 61 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/matrix.hpp:102:35: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:102:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~~~~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:120:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 120 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ In file included from add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 add_term.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 calc_qpois_regs.cpp:3: In file included from ./calc_qpois_regs.h:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from Eval.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from Eval.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 72 | TARGET[FUN(i)] = SOURCEIn file included from censweib_reg.cpp:5[i] ; i++ ; : In file included from ./mn.h:6 \ | ~~~ ^ : Eval.cpp:34:26:In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::Vector<14>>' requested here 22 | 34 | res.row(in return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~dex-1) = measure_time(exprs[i /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16:ndex-1],env,ti note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here m); | ^ 40 | graIn file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] inSi 157 | RCze = resolveValuePP_LOOP_("RCPUNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:P_PA16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' RALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ 73 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; In file included from censweib_reg.cpp:5: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] \ | ~~~ ^ 28In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h | :35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h: ret41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.hurn d:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] e 157 | RCPP_LOOP_UNROLL_LHSFUN(faultValue; | ~~~~~~ ^~~~~~~~~~~~ start,get_paren/Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: t_implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | inde return defax,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ultV/Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 74 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; alue; | ~~~~~~ ^~~~~~~~~~~~ \ | ~~~ ^ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h::11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ 35: 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:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 41 | return value; | ~~~~~~ ^~~~~ 75 | TARGET[FUN(i)] = SOU/Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here RCE[i] ; i++ ; \ | ~~~ ^ In file included from Eval.cpp:3: In file included from 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numT/Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.hhreads, -1); | ^ :41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 79 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 81 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ In file included from Eval.cpp:3: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 83 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ 36 warnings and 3 errors generated. In file included from censweib_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_solve_gen_default>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eOp_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Mat, arma::glue_solve_gen_default>>::Proxy' requested here 37 | : P(in_m) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_minus.hpp:100:10: note: in instantiation of member function 'arma::eOp, arma::Mat, arma::glue_solve_gen_default>, arma::eop_scalar_minus_pre>::eOp' requested here 100 | return eOp(X, k); | ^ censweib_reg.cpp:77:14: note: in instantiation of function template specialization 'arma::operator-, arma::Mat, arma::glue_solve_gen_default>>' requested here 77 | vec be = m -solve(derb2, derb); | ^ make[2]: *** [Eval.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c colcauchy_mle.cpp -o colcauchy_mle.o 30 warnings and 3 errors generated. make[2]: *** [censweib_reg.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c colspml_mle.cpp -o colspml_mle.o In file included from col_row_utilities.cpp:4: In file included from ../inst/include/Rfast2/templates_rfast2.h:3: /Users/ripley/R/Library/Rfast/include/Rfast/types.hpp:110:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'type' (aka 'int') [-Wfloat-conversion] 110 | inline static type val= NA_REAL; | ~~~ ^~~~~~~ /Users/ripley/R/R-devel/include/R_ext/Arith.h:58:18: note: expanded from macro 'NA_REAL' 58 | #define NA_REAL R_NaReal | ^~~~~~~~ In file included from col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 col_row_utilities.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ 24 warnings generated. 22 warnings generated. In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:36:19: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 36 | ff(i) = Rfast::TrimMean(x.col(i), a); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:93:12: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 93 | ff(i) = TrimMean(x.row(i), a); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:122:17: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Col, arma::Col>' requested here 122 | ff.col(i) = Quantile(y, probs); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:166:15: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Row, arma::Col>' requested here 166 | f.row(i) = Quantile(x.row(i), probs); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:197:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 197 | mx=xxx; | ~^~~ col_row_utilities.cpp:38:3: note: in instantiation of function template specialization 'maximum' requested here 38 | maximum(group.begin(),group.end(),n); | ^ In file included from col_row_utilities.cpp:4: ../inst/include/Rfast2/templates_rfast2.h:61:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 61 | ff[i + col_index_f] = med_helper>(tmp.begin(), tmp.end()); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ col_row_utilities.cpp:103:14: note: in instantiation of function template specialization 'group_col_med_h' requested here 103 | return group_col_med_h(x, y, length_unique); | ^ In file included from col_row_utilities.cpp:3: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:138:22: warning: implicit conversion loses integer precision: 'decltype(__x.base() - __y.base())' (aka 'long') to 'const int' [-Wshorten-64-to-32] 138 | const int sz=last-start,middle=sz/2-1; | ~~ ~~~~^~~~~~ ../inst/include/Rfast2/templates_rfast2.h:61:35: note: in instantiation of function template specialization 'med_helper>' requested here 61 | ff[i + col_index_f] = med_helper>(tmp.begin(), tmp.end()); | ^ col_row_utilities.cpp:103:14: note: in instantiation of function template specialization 'group_col_med_h' requested here 103 | return group_col_med_h(x, y, length_unique); | ^ In file included from col_row_utilities.cpp:4: ../inst/include/Rfast2/templates_rfast2.h:94:35: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename Col::elem_type>::result' (aka 'double') to 'int' [-Wfloat-conversion] 94 | ff[i + col_index_f] = mean(c); | ~ ^~~~~~~ col_row_utilities.cpp:112:14: note: in instantiation of function template specialization 'group_col_mean_h' requested here 112 | return group_col_mean_h(x, y, length_unique); | ^ 63 warnings and 3 errors generated. make[2]: *** [col_row_utilities.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c cts.cpp -o cts.o In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 colbeta_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from colbeta_mle.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from colbeta_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from colbeta_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ colbeta_mle.cpp:83:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 83 | ret(i,0) = a[0]; | ^ In file included from colbeta_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 30 warnings and 3 errors generated. make[2]: *** [colbeta_mle.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c fbed_reg.cpp -o fbed_reg.o In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 colcauchy_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 colspml_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from colcauchy_mle.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from colspml_mle.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from colcauchy_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from colcauchy_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from colcauchy_mle.cpp:6: ../inst/include/Rfast2/templates.h:138:22: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 138 | const int sz=last-start,middle=sz/2-1; | ~~ ~~~~^~~~~~ colcauchy_mle.cpp:88:20: note: in instantiation of function template specialization 'med_helper>' requested here 88 | mlogses[0] = med_helper(xiter,xiterend); | ^ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ colcauchy_mle.cpp:112:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 112 | ret(i,0) = lik2-n*1.14472988585; | ^ In file included from colcauchy_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 31 warnings and 3 errors generated. make[2]: *** [colcauchy_mle.o] Error 1 In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 colspml_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from colspml_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ colspml_mle.cpp:94:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 94 | ret(j,0) = mu2[0]; | ^ In file included from colspml_mle.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 30 warnings and 3 errors generated. In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 cts.cpp:4: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ make[2]: *** [colspml_mle.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c fedhc_skeleton.cpp -o fedhc_skeleton.o In file included from cts.cpp:4: In file included from ./cts.h:11: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ cts.cpp:42:46: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 42 | const unsigned int mid = vals.size() / 2 - 1; | ~~~ ~~~~~~~~~~~~~~~~^~~ cts.cpp:121:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 121 | const unsigned int curr = ds(i, j); | ~~~~ ^~~~~~~~ cts.cpp:129:28: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long long' [-Wfloat-conversion] 129 | max_min(j) = (max - min) + extra_val; | ~ ~~~~~~~~~~~~^~~~~~~~~~~ cts.cpp:187:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 187 | const unsigned int nrows = ds1.n_cols; | ~~~~~ ~~~~^~~~~~ cts.cpp:188:40: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 188 | const unsigned int ncols = ds1.n_rows + ds2.n_rows; | ~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~ cts.cpp:207:40: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 207 | const unsigned int nrows = ds1.n_rows + ds2.n_rows; | ~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~ cts.cpp:209:40: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 209 | ds1.n_cols > ds2.n_cols ? ncols = ds1.n_cols : ncols = ds2.n_cols; | ~ ~~~~^~~~~~ cts.cpp:209:61: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 209 | ds1.n_cols > ds2.n_cols ? ncols = ds1.n_cols : ncols = ds2.n_cols; | ~ ~~~~^~~~~~ cts.cpp:224:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 224 | row = ds1.n_rows; | ~ ~~~~^~~~~~ cts.cpp:244:40: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 244 | const unsigned int nrows = src.n_rows - dupls_pos.size(); | ~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ cts.cpp:329:23: warning: implicit conversion loses integer precision: 'unsigned long long' to 'value_type' (aka 'unsigned int') [-Wshorten-64-to-32] 329 | idxs_adj.push_back(idxs[i]); | ~~~~~~~~~ ^~~~~~~ cts.cpp:348:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long long' [-Wfloat-conversion] 348 | ret(0, 0) = R::choose(idxs[0], k); | ~ ^~~~~~~~~~~~~~~~~~~~~ cts.cpp:362:41: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 362 | const unsigned int size = inter_vals.size(); | ~~~~ ~~~~~~~~~~~^~~~~~ cts.cpp:409:38: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 409 | unsigned int dst_nrows = src.n_rows - rows.size(); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~~ cts.cpp:410:31: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 410 | unsigned int dst_ncols = src.n_cols; | ~~~~~~~~~ ~~~~^~~~~~ cts.cpp:430:38: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 430 | unsigned int dst_nrows = src.n_rows - rows.size(); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~~ cts.cpp:431:31: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 431 | unsigned int dst_ncols = src.n_cols; | ~~~~~~~~~ ~~~~^~~~~~ cts.cpp:457:31: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 457 | unsigned int dst_nrows = src.n_rows; | ~~~~~~~~~ ~~~~^~~~~~ cts.cpp:458:38: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 458 | unsigned int dst_ncols = src.n_cols - cols.size(); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~~ cts.cpp:480:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'const unsigned int' [-Wshorten-64-to-32] 480 | const unsigned int idx = order_idxs(i); | ~~~ ^~~~~~~~~~~~~ cts.cpp:530:34: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 530 | const unsigned int nrows = vals.size(); | ~~~~~ ~~~~~^~~~~~ cts.cpp:531:31: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 531 | const unsigned int ncols = 1 + ds.n_cols; | ~~~~~ ~~^~~~~~~~~~~ cts.cpp:543:35: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 543 | const unsigned int nrows = vals1.size(); | ~~~~~ ~~~~~~^~~~~~ cts.cpp:556:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long long' [-Wfloat-conversion] 556 | vals(i) = ds(row, cols(i)); | ~ ^~~~~~~~~~~~~~~~ cts.cpp:610:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 610 | const unsigned int nrows = ds1.n_rows; | ~~~~~ ~~~~^~~~~~ cts.cpp:611:40: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 611 | const unsigned int ncols = ds1.n_cols + ds2.n_cols; | ~~~~~ ~~~~~~~~~~~^~~~~~~~~~~~ cts.cpp:625:57: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 625 | const unsigned int dst_nrows = src.n_rows * src.n_cols / dst_ncols; | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c frechet_nn.cpp -o frechet_nn.o In file included from cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 cts.cpp:4: In file included from ./cts.h:10: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from cts.cpp:4: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from cts.cpp:4: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from cts.cpp:4: In file included from ./cts.h:11: ../inst/include/Rfast2/templates.h:956:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 956 | const int n=x.size(),n_1=n+1; | ~ ~~^~~~~~ cts.cpp:106:16: note: in instantiation of function template specialization 'rank_mean, arma::Col, arma::Col>' requested here 106 | rds.col(i) = rank_mean(curr_col, false); | ^ In file included from cts.cpp:4: ./cts.h:24:55: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 24 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~ ~~~~~^~~~~~ cts.cpp:351:9: note: in instantiation of function template specialization 'find_combn, std::vector>' requested here 351 | return find_combn>(idxs, k); | ^ In file included from cts.cpp:4: ./cts.h:24:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 24 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cts.h:37:40: warning: implicit conversion turns floating-point number into integer: 'value_type' (aka 'double') to 'unsigned long long' [-Wfloat-conversion] 37 | combn_ds(i, combn_col) = combn_data.at(i); | ~ ~~~~~~~~~~~^~~~~ ./cts.h:28:17: note: in instantiation of function template specialization 'combn, std::vector>' requested here 28 | combn_col = 0; combn(vals, n, start_idx, combn_data, combn_ds, combn_col); | ^ cts.cpp:351:9: note: in instantiation of function template specialization 'find_combn, std::vector>' requested here 351 | return find_combn>(idxs, k); | ^ 59 warnings and 3 errors generated. In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ make[2]: *** [cts.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c gamma_reg.cpp -o gamma_reg.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c gamma_regs.cpp -o gamma_regs.o In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 fbed_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ fbed_reg.cpp:310:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 310 | tmpmat.col(selectedColumnSize) = x.col(idxs[i]); | ~~~ ^~~~~~~ fbed_reg.cpp:372:50: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 372 | tmpmat.col(selectedColumnSize) = x.col(idxs[i]); | ~~~ ^~~~~~~ fbed_reg.cpp:428:19: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 428 | idx = idxs[i]; | ~ ^~~~~~~ fbed_reg.cpp:532:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 532 | idx = selectedColumns[1]; | ~ ^~~~~~~~~~~~~~~~~~ fbed_reg.cpp:544:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 544 | idx = selectedColumns[i]; | ~ ^~~~~~~~~~~~~~~~~~ fbed_reg.cpp:191:31: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 191 | int startmodsize = startmod.size(); | ~~~~~~~~~~~~ ~~~~~~~~~^~~~~~ fbed_reg.cpp:252:18: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 252 | int xcolsz = x.n_cols; | ~~~~~~ ~~^~~~~~ clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c init.c -o init.o In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:197:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 197 | mx=xxx; | ~^~~ fbed_reg.cpp:94:5: note: in instantiation of function template specialization 'maximum' requested here 94 | maximum(id.begin(), id.end(), idmx); | ^ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:214:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 214 | mn=xxx; | ~^~~ fbed_reg.cpp:95:5: note: in instantiation of function template specialization 'minimum' requested here 95 | minimum(id.begin(), id.end(), idmn); | ^ In file included from fbed_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:586:19: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 586 | const int n=x.size(); | ~ ~~^~~~~~ fbed_reg.cpp:144:10: note: in instantiation of function template specialization 'design_matrix_helper, Rcpp::Vector<14>>' requested here 144 | Y1 = design_matrix_helper(Y); | ^ In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ fbed_reg.cpp:183:12: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 183 | kmatrix(i, 0) = i; | ^ In file included from fbed_reg.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 40 warnings and 3 errors generated. make[2]: *** [fbed_reg.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c is_symmetric.cpp -o is_symmetric.o In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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; | ~ ^~ fedhc_skeleton.cpp:37:21: warning: implicit conversion loses integer precision: 'typename enable_if2>::value && resolves_to_vector>::yes, uword>::result' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 37 | sela[0] = arma::index_min(pval); | ~ ^~~~~~~~~~~~~~~~~~~~~ fedhc_skeleton.cpp:54:48: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 54 | pval[vars[var_i]] = pcor_pval(r, vars[var_i], k, sela, n); | ~~~~~~~~~ ^~~~~~~~~~~ fedhc_skeleton.cpp:70:30: warning: implicit conversion loses integer precision: 'typename enable_if2>>::value && resolves_to_vector>>::yes, uword>::result' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 70 | unsigned int sel = arma::index_min(pval(vars)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fedhc_skeleton.cpp:73:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32] 73 | sela(sela.size()-1) = vars[sel]; | ~ ^~~~~~~~~ fedhc_skeleton.cpp:101:19: warning: implicit conversion loses integer precision: 'typename enable_if2>::value && resolves_to_vector>::yes, uword>::result' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 101 | sela[0] = arma::index_min(pval); | ~ ^~~~~~~~~~~~~~~~~~~~~ fedhc_skeleton.cpp:118:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 118 | pval[vars[var_i]] = pcor_pval(r, vars[var_i], k, sela, n); | ~~~~~~~~~ ^~~~~~~~~~~ fedhc_skeleton.cpp:133:28: warning: implicit conversion loses integer precision: 'typename enable_if2>>::value && resolves_to_vector>>::yes, uword>::result' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 133 | unsigned int sel = arma::index_min(pval(vars)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fedhc_skeleton.cpp:135:31: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32] 135 | sela(sela.size()-1) = vars[sel]; | ~ ^~~~~~~~~ In file included from fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 fedhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 frechet_nn.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 gamma_reg.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 gamma_regs.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from gamma_reg.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from gamma_regs.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from gamma_reg.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from gamma_reg.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from gamma_reg.cpp:6: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ gamma_reg.cpp:62:14: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 62 | mat der2 = cross_x_y(com, x); | ^ In file included from gamma_reg.cpp:6: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from gamma_regs.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from gamma_regs.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from gamma_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::op_htrans>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Op, arma::op_htrans>, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eGlue_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>>::Proxy' requested here 37 | , P2(in_B) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_minus.hpp:166:10: note: in instantiation of member function 'arma::eGlue, arma::Glue, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>, arma::eglue_minus>::eGlue' requested here 166 | return eGlue(X, Y); | ^ gamma_reg.cpp:64:11: note: in instantiation of function template specialization 'arma::operator-, arma::Glue, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>>' requested here 64 | be = be - solve(der2, der.t()); | ^ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ gamma_regs.cpp:98:12: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 98 | ret(j,0) = (ini-devi)/phi; | ^ In file included from gamma_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 30 warnings and 3 errors generated. make[2]: *** [gamma_regs.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c kernel.cpp -o kernel.o In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ 32 warnings and 3 errors generated. make[2]: *** [gamma_reg.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mmhc_skeleton.cpp -o mmhc_skeleton.o 30 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mmp_c.cpp -o mmp_c.o In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 is_symmetric.cpp:6: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from is_symmetric.cpp:6: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ 22 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mmpc2.cpp -o mmpc2.o In file included from is_symmetric.cpp:6: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from is_symmetric.cpp:6: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ is_symmetric.cpp:16:11: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 16 | if(x(j,i)!=-x(i,j)) | ^ In file included from is_symmetric.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 30 warnings and 3 errors generated. make[2]: *** [is_symmetric.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mn.cpp -o mn.o In file included from mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 | clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c multinom_reg.cpp -o multinom_reg.o s += t / n; | ~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ mmhc_skeleton.cpp:55:23: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32] 55 | cand[0] = sela[0]; | ~ ^~~~~~~ mmhc_skeleton.cpp:66:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 66 | pval2 = pcor_pval(r, vars[var_i], k, cand.col(j), n); | ~~~~~~~~~ ^~~~~~~~~~~ mmhc_skeleton.cpp:97:28: warning: implicit conversion loses integer precision: 'typename enable_if2>>::value && resolves_to_vector>>::yes, uword>::result' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 97 | unsigned int sel = arma::index_min(pval(vars)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmhc_skeleton.cpp:149:23: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32] 149 | cand[0] = sela[0]; | ~ ^~~~~~~ mmhc_skeleton.cpp:160:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 160 | pval2 = pcor_pval(r, vars[var_i], k, cand.col(j), n); | ~~~~~~~~~ ^~~~~~~~~~~ mmhc_skeleton.cpp:187:28: warning: implicit conversion loses integer precision: 'typename enable_if2>>::value && resolves_to_vector>>::yes, uword>::result' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 187 | unsigned int sel = arma::index_min(pval(vars)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ In file included from mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 68 1085 | | x_mem[i] = eT(start + i*delta); | ^~ T/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here *xx= 109 | return linspace(start, end, num); | ^ (T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38 *) D: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] ATAPTR(y),yvalue,*x3; | ^~~~~~~ 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:16: ../inst/include/Rfast2/helpers.hpp:236:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 236 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:262:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 262 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:289:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 289 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: ../inst/include/Rfast2/matrix.hpp:61:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 61 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/matrix.hpp:102:35: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:102:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~~~~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:120:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 120 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:16: /Users/ripley/R/Library/Rfast/include/Rfast/types.hpp:110:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'type' (aka 'int') [-Wfloat-conversion] 110 | inline static type val= NA_REAL; | ~~~ ^~~~~~~ /Users/ripley/R/R-devel/include/R_ext/Arith.h:58:18: note: expanded from macro 'NA_REAL' 58 | #define NA_REAL R_NaReal | ^~~~~~~~ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:19: /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:156:66: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 156 | inds = Tabulate, arma::Col>(x, x.n_elem); | ~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:213:70: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 213 | inds = Tabulate, arma::Col>(x, x.n_elem); | ~~~~~~~~ ~~^~~~~~ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:58:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 58 | const int p = x.n_cols, n = x.n_rows; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:58:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 58 | const int p = x.n_cols, n = x.n_rows; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:157:10: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 157 | n = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:158:10: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 158 | p = y.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:162:10: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 162 | n = x.n_rows; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:163:15: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 163 | p = ty ? y.n_rows : y.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:163:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 163 | p = ty ? y.n_rows : y.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:218:32: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 218 | NumericMatrix F(x.nrows(), x.size()); | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:218:21: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 218 | NumericMatrix F(x.nrows(), x.size()); | ~ ~~^~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:231:17: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 231 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:285:17: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 285 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:342:17: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 342 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:396:17: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 396 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:562:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 562 | const int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:562:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 562 | const int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:789:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 789 | const int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:789:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 789 | const int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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/Rfast/include/Rfast/matrix.hpp:918:15: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 918 | int ncl = x.n_cols, i, j; | ~~~ ~~^~~~~~ /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; | ~ ^ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:944:15: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 944 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:968:15: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 968 | int i = s - x.begin(); | ~ ~~^~~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1051:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 1051 | const int p = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1161:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 1161 | const int p = x.n_rows; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1521:19: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 1521 | const int n = x.size(); | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1604:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 1604 | const int n = x.n_cols; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1620:19: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 1620 | const int n = x.n_rows; | ~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1660:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1660 | f[s - x.begin()] = FactorVector(s->get()).maxIndex(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1685:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1685 | f[i++] = FactorVector(s->get()).maxIndex(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1723:48: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1723 | f[s - x.begin()] = FactorVector(s->get()).maxIndex(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1748:38: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1748 | f[i++] = FactorVector(s->get()).maxIndex(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 mmp_c.cpp:9: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1761:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 1761 | NumericMatrix F(2, x.size()); | ~ ~~^~~~~~ In file included from mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 mmhc_skeleton.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ kernel.cpp:22:36: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 22 | const double h2 = 2*h*h, k = ( n * h * sqrt(2 * datum::pi) ); | ^ ~ kernel.cpp:45:91: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | colvec x(X.begin(), n, false), h(H.begin(), H.size(), false), h2 = 2*square(h), k = ( n * sqrt(2 * datum::pi) * h ), sv(h.n_elem, fill::none), yh(1, fill::none); | ^ ~ kernel.cpp:43:33: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 43 | NumericMatrix Res(H.size(), n); | ~~~ ^ kernel.cpp:43:25: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 43 | NumericMatrix Res(H.size(), n); | ~~~ ~~^~~~~~ kernel.cpp:103:68: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 103 | const double k = nrw * prod(h) * std::pow(2 * datum::pi, 0.5 * ncl); | ~ ^~~ kernel.cpp:103:22: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'typename enable_if2>::value && resolves_to_vector>::yes, typename Col::elem_type>::result' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 103 | const double k = nrw * prod(h) * std::pow(2 * datum::pi, 0.5 * ncl); | ^~~ ~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ mmp_c.cpp:57:35: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 57 | const unsigned int nrows = src_c.n_rows; | ~~~~~ ~~~~~~^~~~~~ mmp_c.cpp:58:42: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 58 | const unsigned int ncols = src_c.n_cols + 2; | ~~~~~ ~~~~~~~~~~~~~^~~ mmp_c.cpp:199:53: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'const double' may lose precision [-Wimplicit-int-float-conversion] 199 | const double rh = target_vars.size() - idxs.size() - 3; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ mmp_c.cpp:255:32: warning: implicit conversion loses integer precision: 'typename enable_if2>::value && resolves_to_vector>::yes, uword>::result' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 255 | const unsigned int max_idx = arma::index_max(sel_ord_idxs); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmp_c.cpp:378:38: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 378 | const unsigned int dof = ds.n_rows - 3; | ~~~ ~~~~~~~~~~^~~ mmp_c.cpp:432:25: warning: implicit conversion loses integer precision: 'typename enable_if2>::value && resolves_to_vector>::yes, uword>::result' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 432 | unsigned int sel_idx = arma::index_min(pvalues); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ mmp_c.cpp:572:35: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 572 | const unsigned int var_size = ds.n_cols; | ~~~~~~~~ ~~~^~~~~~ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:36:19: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 36 | ff(i) = Rfast::TrimMean(x.col(i), a); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:93:12: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 93 | ff(i) = TrimMean(x.row(i), a); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:122:17: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Col, arma::Col>' requested here 122 | ff.col(i) = Quantile(y, probs); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:166:15: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Row, arma::Col>' requested here 166 | f.row(i) = Quantile(x.row(i), probs); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:18: /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:58:66: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 58 | const int newsize = na_rm ? remove_if(x.begin(),x.end(),R_IsNA)-x.begin() : x.size(); | ~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:83:10: note: in instantiation of function template specialization 'Rfast::mad>' requested here 83 | return mad(x,method,na_rm); | ^ /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:58:81: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 58 | const int newsize = na_rm ? remove_if(x.begin(),x.end(),R_IsNA)-x.begin() : x.size(); | ~~~~~~~ ~~^~~~~~ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:38:12: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 38 | swap(f(u, i), f(i, u)); | ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:19: /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:231:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 231 | res[start] = i + 1; | ~ ~~^~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:244:33: note: in instantiation of function template specialization 'Rfast::FactorVector::sort>' requested here 244 | f.col(i) = FactorVector::sort(s->get(), descend); | ^ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:19: /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:251:44: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 251 | res[start] = i + 1; | ~ ~~^~~ /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:213:70: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 213 | inds = Tabulate, arma::Col>(x, x.n_elem); | ~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/FactorVector.hpp:222:36: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 222 | start = res.size() - 1; | ~ ~~~~~~~~~~~^~~ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:138:22: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 138 | const int sz=last-start,middle=sz/2-1; | ~~ ~~~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:948:54: note: in instantiation of function template specialization 'med_helper>' requested here 948 | setResultParallelSection>(ff, s, i, na_rm); | ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:51:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 51 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1039:13: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>' requested here 1039 | import_expression(x, n ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1051:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_sugar_expression>' requested here 1051 | assign_sugar_expression( x.get_ref() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:245:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_object>' requested here 245 | assign_object( x, typename traits::is_sugar_expression::type() ) ; | ^ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1016:10: note: in instantiation of function template specialization 'Rcpp::Vector<14>::operator=>' requested here 1016 | tmp = x.column(i); | ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:52:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 52 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:53:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 53 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:54:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 54 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:58:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 58 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:60:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 60 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:62:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 62 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:138:22: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 138 | const int sz=last-start,middle=sz/2-1; | ~~ ~~~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1017:13: note: in instantiation of function template specialization 'med_helper>' requested here 1017 | F[i] = med_helper(tmp.begin(), tmp.begin() + (int)(std::remove_if(tmp.begin(), tmp.end(), R_IsNA) - tmp.begin())); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:138:22: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 138 | const int sz=last-start,middle=sz/2-1; | ~~ ~~~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1118:14: note: in instantiation of function template specialization 'med_helper>' requested here 1118 | ff[i] = med_helper(tmp.begin(), tmp.begin() + (int)(std::remove_if(tmp.begin(), tmp.end(), R_IsNA) - tmp.begin())); | ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:51:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 51 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1039:13: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>' requested here 1039 | import_expression(x, n ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1051:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_sugar_expression>' requested here 1051 | assign_sugar_expression( x.get_ref() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:245:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_object>' requested here 245 | assign_object( x, typename traits::is_sugar_expression::type() ) ; | ^ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1126:10: note: in instantiation of function template specialization 'Rcpp::Vector<14>::operator=>' requested here 1126 | tmp = x.row(i); | ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:52:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 52 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:53:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 53 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:54:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 54 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:58:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 58 | TARGET[i] =In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] S 22 | OURCE[i ret] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ uIn file included from kernel.cpp:6: rn requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | grainSize = res/Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:60olveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ :26: note: expanded from macro 'RCPP_LOOP_UNROLL' In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14 60 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ :In file included from kernel.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35 warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-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:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:62:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ 62 | /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALIn file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:18: /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:41:8: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] L 41 | n=x.size(); | ~~~^~~~~~EL_NUM_THREADS", numThreads, -1); | ^ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1224:20: note: in instantiation of function template specialization 'Rfast::var>' requested here 1224 | ff[i] = Rfast::var(xx.col(i), std, na_rm); | ^ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:18: /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:41:8: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 41 | n=x.size(); | ~~~^~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1306:20: note: in instantiation of function template specialization 'Rfast::var>' requested here 1306 | ff[i] = Rfast::var(xx.row(i), std, na_rm); | ^ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:18: /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:58:66: warning: implicit conversion loses integer precision: 'long' to 'const int' [-Wshorten-64-to-32] 58 | const int newsize = na_rm ? remove_if(x.begin(),x.end(),R_IsNA)-x.begin() : x.size(); | ~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:1459:20: note: in instantiation of function template specialization 'Rfast::mad>' requested here 1459 | ff[i] = Rfast::mad(xx.row(i), method, na_rm); | ^ In file included from kernel.cpp:11: In file included from /Users/ripley/R/Library/Rfast/include/Rfast.h:5: In file included from /Users/ripley/R/Library/Rfast/include/Rfast/matrix.hpp:18: /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:58:81: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 58 | const int newsize = na_rm ? remove_if(x.begin(),x.end(),R_IsNA)-x.begin() : x.size(); | ~~~~~~~ ~~^~~~~~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 mmp_c.cpp:9: In file included from ./mmp_c.h:12: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ mmp_c.cpp:46:18: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_solve_gen_default>' requested here 46 | arma::mat res = arma::solve(lh, rh); | ^ /Users/ripley/R/Library/Rfast/include/Rfast/vector.hpp:41:8: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 41 | n=x.size(); | ~~~^~~~~~ kernel.cpp:66:29: note: in instantiation of function template specialization 'Rfast::var>' requested here 66 | const double s = Rfast::var(X, true); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ kernel.cpp:69:29: note: in instantiation of function template specialization 'Rfast::Quantile, Rcpp::Vector<14>, std::vector>' requested here 69 | colvec tmp = Rfast::Quantile(clone(X), probs); | ^ In file included from kernel.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'value_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'value_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ mmpc2.cpp:55:28: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 55 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~ ~~^~~~~~ mmpc2.cpp:55:43: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 55 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~~~~~ ~~^~~~~~ 134 warnings and 3 errors generated. In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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; | ~^ make[2]: *** [kernel.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c negbin_reg.cpp -o negbin_reg.o mmpc2.cpp:95:28: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 95 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~ ~~^~~~~~ mmpc2.cpp:95:43: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 95 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~~~~~ ~~^~~~~~ mmpc2.cpp:131:28: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 131 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~ ~~^~~~~~ mmpc2.cpp:131:43: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 131 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~~~~~ ~~^~~~~~ mmpc2.cpp:213:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned long long' [-Wfloat-conversion] 213 | res(i) = floor(inds(i)/nr); | ~ ^~~~~~~~~~~~~~~~~ mmpc2.cpp:213:24: warning: implicit conversion from 'unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 213 | res(i) = floor(inds(i)/nr); | ^~~~~~~~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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; | ~ ^ mmpc2.cpp:261:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 261 | const int varsize = x.n_cols; | ~~~~~~~ ~~^~~~~~ mmpc2.cpp:277:23: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 277 | const int n=x.n_rows; | ~ ~~^~~~~~ mmpc2.cpp:353:30: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 353 | sel = pval(vars).index_min(); | ~ ~~~~~~~~~~~^~~~~~~~~~~ mmpc2.cpp:355:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 355 | push_back(sela,vars(sel)); | ~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:357:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 357 | vars = std_setdiff(vars, vars(sel)); | ~~~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:368:137: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 368 | kapa_pval[0] = join_cols( as(kapa_pval[0]), join_rows((mat)pval2, join_rows(conv_to::from(vars), rep(vars.n_elem,1,sela(1)))+1)); | ~~~ ^~~~~~~ mmpc2.cpp:368:128: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 368 | kapa_pval[0] = join_cols( as(kapa_pval[0]), join_rows((mat)pval2, join_rows(conv_to::from(vars), rep(vars.n_elem,1,sela(1)))+1)); | ~~~ ~~~~~^~~~~~ mmpc2.cpp:386:28: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 386 | sel=pval(vars).index_min(); | ~~~~~~~~~~~~^~~~~~~~~~~ mmpc2.cpp:387:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 387 | push_back(sela,vars(sel)); | ~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:388:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 388 | vars = std_setdiff(vars, vars(sel)); | ~~~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:389:23: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 389 | dm = sela.n_elem; | ~ ~~~~~^~~~~~ mmpc2.cpp:400:120: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 400 | kapa_pval[0] = rbind( as(kapa_pval[0]), cbind(pval2,cbind(conv_to::from(vars), rep(vars.n_elem,1,sela(2)))+1)); | ~~~ ^~~~~~~ mmpc2.cpp:400:111: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 400 | kapa_pval[0] = rbind( as(kapa_pval[0]), cbind(pval2,cbind(conv_to::from(vars), rep(vars.n_elem,1,sela(2)))+1)); | ~~~ ~~~~~^~~~~~ mmpc2.cpp:446:28: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 446 | sel=pval(vars).index_min(); | ~~~~~~~~~~~~^~~~~~~~~~~ mmpc2.cpp:447:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 447 | push_back(sela,vars(sel)); | ~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:448:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 448 | vars = std_setdiff(vars, vars(sel)); | ~~~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:455:25: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 455 | dm = sela.n_elem-1; | ~ ~~~~~~~~~~~^~ mmpc2.cpp:459:129: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 459 | kapa_pval[0] = join_cols( as(kapa_pval[0]), join_rows(pval2, join_rows(conv_to::from(vars), rep(vars.n_elem,1,sela(dm)))+1)); | ~~~ ^~~~~~~~ mmpc2.cpp:459:120: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 459 | kapa_pval[0] = join_cols( as(kapa_pval[0]), join_rows(pval2, join_rows(conv_to::from(vars), rep(vars.n_elem,1,sela(dm)))+1)); | ~~~ ~~~~~^~~~~~ mmpc2.cpp:488:27: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 488 | sel=pval_vars.index_min(); | ~~~~~~~~~~~^~~~~~~~~~~ mmpc2.cpp:489:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 489 | push_back(sela,vars(sel)); | ~~~~~~~~~ ^~~~~~~~~ mmpc2.cpp:490:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 490 | vars = std_setdiff(vars, vars(sel)); | ~~~~~~~~~~~ ^~~~~~~~~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 mn.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from mn.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:13: ./cts.h:24:55: warning: implicit conversion from 'size_type' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 24 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~ ~~~~~^~~~~~ mmp_c.cpp:524:25: note: in instantiation of function template specialization 'find_combn, std::vector>' requested here 524 | arma::umat combns = find_combn>(combn_vals, ++k); | ^ In file included from mmp_c.cpp:9: In file included from ./mmp_c.h:13: ./cts.h:24:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 24 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./cts.h:37:40: warning: implicit conversion turns floating-point number into integer: 'value_type' (aka 'double') to 'unsigned long long' [-Wfloat-conversion] 37 | combn_ds(i, combn_col) = combn_data.at(i); | ~ ~~~~~~~~~~~^~~~~ ./cts.h:28:17: note: in instantiation of function template specialization 'combn, std::vector>' requested here 28 | combn_col = 0; combn(vals, n, start_idx, combn_data, combn_ds, combn_col); | ^ mmp_c.cpp:524:25: note: in instantiation of function template specialization 'find_combn, std::vector>' requested here 524 | arma::umat c../inst/include/Rfast2/templates.h:1085:57:ombns error: use of undeclared identifier 'DATAPTR' = find_combn>(combn_vals, ++k); | ^ 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ 39 warnings and 3 errors generated. mn.cpp:31:11: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 31 | int n=x.size(); | ~ ~~^~~~~~ mn.cpp:142:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 142 | int i,p=x.n_cols,sz=x.n_rows,middle=sz/2-1,step=sz; | ~ ~~^~~~~~ mn.cpp:142:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 142 | int i,p=x.n_cols,sz=x.n_rows,middle=sz/2-1,step=sz; | ~~ ~~^~~~~~ make[2]: *** [mmp_c.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c negbin_regs.cpp -o negbin_regs.o mn.cpp:190:18: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 190 | const int sz=x.size(); | ~~ ~~^~~~~~ mn.cpp:200:17: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 200 | const int n=x.size(); | ~ ~~^~~~~~ mn.cpp:228:42: warning: implicit conversion turns floating-point number into integer: 'const double' to 'int' [-Wfloat-conversion] 228 | return ((int(x)*10)%10>4) ? int(x)+1 : x; | ~~~~~~ ^ mn.cpp:240:19: warning: implicit conversion turns floating-point number into integer: 'long double' to 'long long' [-Wfloat-conversion] 240 | long long int t=powers[dg+1]; | ~ ^~~~~~~~~~~~ mn.cpp:242:28: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 242 | long long int y= nx ? -x*t : x*t; | ~^ mn.cpp:242:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 242 | long long int y= nx ? -x*t : x*t; | ~ ~~^~ mn.cpp:242:34: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 242 | long long int y= nx ? -x*t : x*t; | ~^ mn.cpp:242:33: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 242 | long long int y= nx ? -x*t : x*t; | ~ ~^~ mn.cpp:245:5: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 245 | x=y; | ~^ mn.cpp:246:18: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 246 | return nx ? -x/t : x/t ; | ~^ mn.cpp:246:24: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 246 | return nx ? -x/t : x/t ; | ~^ mn.cpp:251:19: warning: implicit conversion turns floating-point number into integer: 'long double' to 'long long' [-Wfloat-conversion] 251 | long long int t=powers[dg+1]; | ~ ^~~~~~~~~~~~ mn.cpp:253:28: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 253 | long long int y= nx ? -x*t : x*t; | ~^ mn.cpp:253:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 253 | long long int y= nx ? -x*t : x*t; | ~ ~~^~ mn.cpp:253:34: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 253 | long long int y= nx ? -x*t : x*t; | ~^ mn.cpp:253:33: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 253 | long long int y= nx ? -x*t : x*t; | ~ ~^~ mn.cpp:256:5: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 256 | x=y; | ~^ mn.cpp:257:18: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 257 | return nx ? -x/t : x/t ; | ~^ mn.cpp:257:24: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 257 | return nx ? -x/t : x/t ; | ~^ mn.cpp:333:17: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 333 | const int n=x.size(),p=y.size(),z=n+p; | ~ ~~^~~~~~ mn.cpp:333:28: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 333 | const int n=x.size(),p=y.size(),z=n+p; | ~ ~~^~~~~~ mn.cpp:342:39: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'int') [-Wshorten-64-to-32] 342 | Col ind=linspace>(1,x.size(),x.size()); | ~~~~~~~~ ~~^~~~~~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_sprandn.hpp:83:7:mn.cpp:375:17: warning: note: in instantiation of member function 'arma::SpMat::sprandn' requested here implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 375 | int 83 | oupsize = p.n_et.sprlem; | andn(n_rows, n_cols, d ~~~~~ ~~^~~~~~ ensity); | ^ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from mmpc2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:693: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:10892: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:115:63: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | RcppArmadillo::fill_ptr( memptr(), X, n_elem ) ; | ~~~~~~~~~~~~~ ^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::Vector<14>>' requested here 29 | : Mat( X ) | ^ mmpc2.cpp:126:12: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::Vector<14>>' requested here 126 | return F; | ^ In file included from mn.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from mn.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:118:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 118 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat, arma::glue_times>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat, arma::glue_times>>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply, arma::Mat, arma::glue_times>>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1200:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>' requested here 1200 | : M(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1259:7: note: in instantiation of member function 'arma::partial_unwrap_default, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>>::partial_unwrap_default' requested here 1259 | : partial_unwrap_redirect< T1, is_Mat_fixed::value>::result(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:382:30: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all) 382 | const partial_unwrap U1(X.A.A); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:487:72: note: in instantiation of function template specialization 'arma::glue_times_redirect3_helper::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 487 | glue_times_redirect3_helper< is_blas_type::value, check_alias >::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:565:37: note: in instantiation of function template specialization 'arma::glue_times_redirect<3, true>::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 565 | glue_times_redirect::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_times::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col>' requested here 6257 | glue_type::apply(*this, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:539:12: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>' requested here 539 | Mat::operator=(X.get_ref()); | ^ mn.cpp:38:4: note: in instantiation of function template specialization 'arma::Col::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>>' requested here 38 | b=inv(tr_z*z)*tr_z*y; | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:135:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 135 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ mmpc2.cpp:37:58: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 37 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~ ~~~~~^~~~~~ mmpc2.cpp:409:20: note: in instantiation of function template specialization 'find_combn, arma::Col>' requested here 409 | cand = find_combn(sela, 2); // w | ^ mmpc2.cpp:37:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 37 | const unsigned int ncols = std::round(R::choose(vals.size(), n)); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:177:28: warning: implicit conversion from 'const unsigned long long' to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 177 | if(tommpc2.cpp:28:43: warning: implicit conversion from 'unsigned long long' to 'value_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 28 | combn_data[combn_ds.n_rows - n] = vals[i]; | ~ ^~~~~~~ mmpc2.cppl == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * max_abs_Aii * std::numeric_limits::epsilon(); } :42:5: note: in instantiation of function template specialization 'combn, arma::Col>' requested here 42 | combn(vals, n, start_idx, combn_data, combn_ds, combn_col); | ^| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:139:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_diag' requested here 139 | if(inv_state.is_diag) { return op_pinv::apply_diag(out, A, T(0) mmpc2.cpp:409:20: note: in instantiation of function template specialization 'find_combn, arma::Col>' requested here 409 | ); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp: 49: 27: note: cand =in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat, arma::glue_times>, false>' requested here find_co 49mbn(sela, 2); // w | ^ | return op_inv_gen_full::apply_direct(outmmpc2.cpp:, 22:38: warning: implicit conversion turns floating-point number into integer: 'value_type' (aka 'double') to 'unsigned long long' [-Wfloat-conversion] expr, caller 22_s | ig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat, arma::glue_times>>' requested here 31 | const b combn_ds(i,ool stat cusom = obnp__col) = combn_data[i]; | ~ ^~~~~~~~~~~~~ inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply, arma::Mat, arma::glue_times>>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1200:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>' requested here 1200 | : M(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1259:7: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 1259 | : partial_unwrap_redirect< T1, is_Mat_fixed::value>::result(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:487:72: note: in instantiation of function template specialization 'arma::glue_times_redirect3_helper::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 487 | glue_times_redirect3_helper< is_blas_type::value, check_alias >::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:565:37: note: in instantiation of function template specialization 'arma::glue_times_redirect<3, true>::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 565 | glue_times_redirect::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_times::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col>' requested here 6257 | glue_type::apply(*this, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:539:12: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>' requested here 539 | Mat::operator=(X.get_ref()); | ^ mn.cpp:38:4: note: in instantiation of function template specialization 'arma::Col::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>>' requested here 38 | b=inv(tr_z*z)*tr_z*y; | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:237:28: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 237 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * abs_eigval[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:140:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_sym' requested here 140 | if(inv_state.is_sym ) { return op_pinv::apply_sym (out, A, T(0), uword(0)); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat, arma::glue_times>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat, arma::glue_times>>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply, arma::Mat, arma::glue_times>>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1200:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>' requested here 1200 | : M(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1259:7: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 1259 | : partial_unwrap_redirect< T1, is_Mat_fixed::value>::result(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:487:72: note: in instantiation of function template specialization 'arma::glue_times_redirect3_helper::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 487 | glue_times_redirect3_helper< is_blas_type::value, check_alias >::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:565:37: note: in instantiation of function template specialization 'arma::glue_times_redirect<3, true>::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 565 | glue_times_redirect::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_times::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col>' requested here 6257 | glue_type::apply(*this, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:539:12: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>' requested here 539 | Mat::operator=(X.get_ref()); | ^ mn.cpp:38:4: note: in instantiation of function template specialization 'arma::Col::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>>' requested here 38 | b=inv(tr_z*z)*tr_z*y; | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:311:50: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 311 | if( (tol == T(0)) && (s.n_elem > 0) ) { tol = (std::max)(n_rows, n_cols) * s[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:142:23: note: in instantiation of function template specialization 'arma::op_pinv::apply_gen' requested here 142 | return op_pinv::apply_gen(out, A, T(0), uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat, arma::glue_times>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat, arma::glue_times>>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply, arma::Mat, arma::glue_times>>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1200:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>' requested here 1200 | : M(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/unwrap.hpp:1259:7: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 1259 | : partial_unwrap_redirect< T1, is_Mat_fixed::value>::result(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:487:72: note: in instantiation of function template specialization 'arma::glue_times_redirect3_helper::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 487 | glue_times_redirect3_helper< is_blas_type::value, check_alias >::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_times_meat.hpp:565:37: note: in instantiation of function template specialization 'arma::glue_times_redirect<3, true>::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::Col>' requested here 565 | glue_times_redirect::apply(out, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_times::apply, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col>' requested here 6257 | glue_type::apply(*this, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:539:12: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>' requested here 539 | Mat::operator=(X.get_ref()); | ^ mn.cpp:38:4: note: in instantiation of function template specialization 'arma::Col::operator=, arma::Mat, arma::glue_times>, arma::op_inv_gen_default>, arma::Mat, arma::glue_times>, arma::Col, arma::glue_times>>' requested here 38 | b=inv(tr_z*z)*tr_z*y; | ^ In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ mn.cpp:177:12: note: in instantiation of function template specialization 'arma::linspace>' requested here 177 | uvec ind=linspace(0,x.n_elem-1,x.n_elem); | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:50: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/RangeIndexer.h:63:6: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 63 | UNROLL_LOOP(=) | ^~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/RangeIndexer.h:28:32: note: expanded from macro 'UNROLL_LOOP' 28 | int __trip_count = (size_) >> 2; \ | ~~~~~~~~~~~~ ~~~~~~~~^~~~ mn.cpp:335:18: note: in instantiation of function template specialization 'Rcpp::internal::RangeIndexer<13, true, Rcpp::Vector<13>>::operator=>' requested here 335 | f[Range(0,n-1)]=x; | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ mn.cpp:342:16: note: in instantiation of function template specialization 'arma::linspace>' requested here 342 | Col ind=linspace>(1,x.size(),x.size()); | ^ In file included from mn.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ 62 warnings and 3 errors generated. make[2]: *** [mn.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c reg_lib2.cpp -o reg_lib2.o 28 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c reg_lib_helper.cpp -o reg_lib_helper.o In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 multinom_reg.cpp:5: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from multinom_reg.cpp:5: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ multinom_reg.cpp:19:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 19 | int d = y.n_cols, pd = p*d; | ~ ~~^~~~~~ In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from multinom_reg.cpp:5: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from multinom_reg.cpp:5: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from multinom_reg.cpp:5: ../inst/include/Rfast2/templates.h:586:19: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 586 | const int n=x.size(); | ~ ~~^~~~~~ multinom_reg.cpp:17:11: note: in instantiation of function template specialization 'design_matrix_helper, Rcpp::Vector<14>>' requested here 17 | mat y = design_matrix_helper(Y); | ^ In file included from multinom_reg.cpp:5: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ multinom_reg.cpp:33:17: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 33 | mat xCrossX = cross_x_y(x,x); | ^ In file included from multinom_reg.cpp:5: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from multinom_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::op_htrans>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Op, arma::op_htrans>, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 6257 | glue_type::apply(*this, X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:539:12: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>' requested here 539 | Mat::operator=(X.get_ref()); | ^ multinom_reg.cpp:59:7: note: in instantiation of function template specialization 'arma::Col::operator=, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>>' requested here 59 | slv = solve(der2, der.t()); | ^ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ 34 warnings and 3 errors generated. make[2]: *** [multinom_reg.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c sf.cpp -o sf.o In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 negbin_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 negbin_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 negbin_regs.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from negbin_regs.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from negbin_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from negbin_reg.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from negbin_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ negbin_reg.cpp:36:15: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 36 | mat derb2 = cross_x_y(koi, x.each_col() % com)*(-er); | ^ In file included from negbin_reg.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from negbin_reg.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_solve_gen_default>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eGlue_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Mat, arma::glue_solve_gen_default>>::Proxy' requested here 37 | , P2(in_B) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_minus.hpp:166:10: note: in instantiation of member function 'arma::eGlue, arma::Glue, arma::Mat, arma::glue_solve_gen_default>, arma::eglue_minus>::eGlue' requested here 166 | return eGlue(X, Y); | ^ negbin_reg.cpp:42:15: note: in instantiation of function template specialization 'arma::operator-, arma::Glue, arma::Mat, arma::glue_solve_gen_default>>' requested here 42 | vec b2 = b1 - solve(derb2, derb); | ^ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ 32 warnings and 3 errors generated. make[2]: *** [negbin_reg.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c skel_helper.cpp -o skel_helper.o In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79In file included from negbin_regs.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] : In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ : 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] /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16 38 | s /= n; | ~~ ^ : note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ /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] In file included from negbin_regs.cpp:8: In file included from ./mn.h:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 44 | s += t/n; | ~^ 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ /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 negbin_regs.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ negbin_regs.cpp:56:17: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 56 | derb2 = cross_x_y(koi, tmpX.each_col() % com)*(-er); | ^ In file included from negbin_regs.cpp:8: In file included from ./mn.h:6: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Mat>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_solve_gen_default>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eGlue_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Mat, arma::glue_solve_gen_default>>::Proxy' requested here 37 | , P2(in_B) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_minus.hpp:166:10: note: in instantiation of member function 'arma::eGlue, arma::Glue, arma::Mat, arma::glue_solve_gen_default>, arma::eglue_minus>::eGlue' requested here 166 | return eGlue(X, Y); | ^ negbin_regs.cpp:62:17: note: in instantiation of function template specialization 'arma::operator-, arma::Glue, arma::Mat, arma::glue_solve_gen_default>>' requested here 62 | b2 = b1 - solve(derb2, derb); | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 reg_lib2.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ negbin_regs.cpp:90:13: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 90 | info(j,0) = sum( lgamma(yer) ) + n * (er * loger - lgamma(er)) - lg + sum(y % log(fit) ) + sum(yer % log(com) ); | ^ In file included from negbin_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 34 warnings and 3 errors generated. make[2]: *** [negbin_regs.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c univariate_mle.cpp -o univariate_mle.o In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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; | ~^ reg_lib2.cpp:20:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 20 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~ ~~^~~~~~ reg_lib2.cpp:20:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 20 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~~~~~ ~~^~~~~~ /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; | ~^ reg_lib2.cpp:45:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 45 | int n = x.n_rows, d = x.n_cols,i; | ~ ~~^~~~~~ reg_lib2.cpp:45:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 45 | int n = x.n_rows, d = x.n_cols,i; | ~ ~~^~~~~~ reg_lib2.cpp:88:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 88 | int n = x.n_rows, d = x.n_cols,i; | ~ ~~^~~~~~ reg_lib2.cpp:88:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 88 | int n = x.n_rows, d = x.n_cols,i; | ~ ~~^~~~~~ reg_lib2.cpp:131:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 131 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:131:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 131 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~~~~~ ~~^~~~~~ reg_lib2.cpp:192:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 192 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~ ~~^~~~~~ reg_lib2.cpp:192:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 192 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~~~~~ ~~^~~~~~ reg_lib2.cpp:243:13: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 243 | int n = y.size(), d = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:243:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 243 | int n = y.size(), d = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:302:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 302 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~ ~~^~~~~~ reg_lib2.cpp:302:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 302 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~~~~~ ~~^~~~~~ reg_lib2.cpp:332:17: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 332 | const int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~ ~~^~~~~~ reg_lib2.cpp:332:32: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 332 | const int n=x.n_rows,pcols=x.n_cols,d=pcols; | ~~~~~ ~~^~~~~~ reg_lib2.cpp:376:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 376 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:376:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 376 | const unsigned int n=x.n_rows,pcols=x.n_cols; | ~~~~~ ~~^~~~~~ reg_lib2.cpp:442:26: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 442 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~ ~~^~~~~~ reg_lib2.cpp:442:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 442 | const unsigned int n=x.n_rows,pcols=x.n_cols,d=2; | ~~~~~ ~~^~~~~~ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 reg_lib_helper.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ reg_lib2.cpp:518:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 518 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:518:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 518 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:681:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 681 | int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:681:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 681 | int n = x.n_rows, p = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:728:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 728 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:728:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 728 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:780:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 780 | int n = x.n_rows, p = x.n_cols, d = y.n_cols, pd = p*d; | ~ ~~^~~~~~ reg_lib2.cpp:780:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 780 | int n = x.n_rows, p = x.n_cols, d = y.n_cols, pd = p*d; | ~ ~~^~~~~~ reg_lib2.cpp:780:41: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 780 | int n = x.n_rows, p = x.n_cols, d = y.n_cols, pd = p*d; | ~ ~~^~~~~~ reg_lib2.cpp:873:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 873 | int n = x.n_rows, d = x.n_cols, elems = n*d; | ~ ~~^~~~~~ reg_lib2.cpp:873:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 873 | int n = x.n_rows, d = x.n_cols, elems = n*d; | ~ ~~^~~~~~ In file included from reg_lib_helper.cpp:7: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ reg_lib2.cpp:985:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 985 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:985:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 985 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1241:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1241 | dera.col(idcoli[0]) = e0.col(i)%X.col(0); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1242:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1242 | dera.col(idcoli[1]) = X.col(1)%e0.col(i); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1247:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1247 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1247:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1247 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1248:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1248 | der2(idcolj[0], idcoli[1]) = ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' crossres 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DAs(0,1); | ~~~~ ^~~~~~~~~ Treg_lib2.cpp:1248:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1248APTR(mat); | ^~~~~~~ | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1249:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1249 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1249:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1249 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1250:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1250 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1250:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1250 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1252:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1252 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1252:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1252 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1253:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1253 | der2(idcoli[0], idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1253:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1253 | der2(idcoli[0], idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1254:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1254 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1254:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1254 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1255:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1255 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1255:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1255 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1260:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1260 | der2(idcoli[0], idcoli[0]) = crossrreg_lib_helper.cpp:29:17: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] ess(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1260:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1260 29 | | der2(idcoliint [0], idcoli[0]) = cropsize = p.n_rows; ssress(0,0); | ~~~~ ^~~~~~~~~ | ~~~~~ ~~^~~~~~ reg_lib2.cpp:1261:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1261 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib_helper.cpp:56:22: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] reg_lib2.cpp:1261:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1261 | 56 | unsigned int n = y.n_rows, p = y.n_ der2(colsidcoli[0], idcoli[1]) =, i; | ~ ~~^~~~~~ crossress(0reg_lib_helper.cpp:56:36: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 56 | ,1); | ~~~~ ^~~~~~~~~ unsigned int n = y.n_rows, p reg_lib2.cpp:1262:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1262 | = y de.n_cols, r2(idcoli i; | ~ ~~^~~~~~ [1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1262:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1262 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1263:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1263 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1263:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1263 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1290:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1290 | dera.col(idcoli[0]) = e1.col(i)%X.col(0); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1291:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1291 | dera.col(idcoli[1]) = e1.col(i)%X.col(1); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1298:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1298 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1298:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1298 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1299:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1299 | der2(idcoli[0], idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1299:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1299 | der2(idcoli[0], idcolj[1]) = crossress(0,1); reg_lib_helper.cpp:116:30: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] | ~~~~ ^~~~~~~~~ 116 | my_pow2(x,&tmp[0],lambda,size); | ~~~~~~~ ^~~~ reg_lib2.cpp:1300:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1300 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1300:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1300 | der2(idcreg_lib_helper.cpp:239:20: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] oli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ 239 | int sz = m.n_cols*m.reg_lib2.cpp:n_rows; | ~~ ~~~~~~~~^~~~~~~~~ 1301:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1301 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1301:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1301 | reg_lib_helper.cpp: 269:17: warning: deimplicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] r2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ 269 | ret+=log(ma(poia[i])); | ~~ ^~~~~~~ reg_lib2.cpp:1303:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1303 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1303:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1303 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1304:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1304 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1304:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1304 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1305:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1305 | der2(idcolj[1],reg_lib_helper.cpp:276:12: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] i 276 | intdc n=Y1.n_rows,sz=Y1ol.n_cols; | ~ ~~~^~~~~~ reg_lib_helper.cpp:276:25:i[ warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 0]) = crossress( 276 | int n=Y1.n_rows,sz=Y1.n_cols; | ~~ ~~~^~~~~~ 1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1305:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1305 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1306:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1306 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1306:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1306 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1311:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1311 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1311:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1311 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1312:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1312 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1312:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1312 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1313:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1313 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1313:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1313 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1314:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1314 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1314:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1314 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1349:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1349 | dera.col(idcoli[0]) = e0.col(i)%X.col(0); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1350:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1350 | dera.col(idcoli[1]) = X.col(1)%e0.col(i); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1355:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1355 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1355:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1355 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1356:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1356 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1356:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1356 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1357:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1357 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1357:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1357 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1358:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1358 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1358:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1358 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1360:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1360 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1360:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1360 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1361:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1361 | der2(idcoli[0], idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1361:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1361 | der2(idcoli[0], idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1362:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1362 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1362:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1362 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1363:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1363 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1363:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1363 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1368:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1368 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1368:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1368 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1369:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1369 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1369:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1369 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1370:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1370 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1370:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1370 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1371:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1371 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1371:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1371 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1398:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1398 | dera.col(idcoli[0]) = e1.col(i)%X.col(0); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1399:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1399 | dera.col(idcoli[1]) = e1.col(i)%X.col(1); | ~~~ ^~~~~~~~~ reg_lib2.cpp:1406:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1406 | der2(idcoli[0], idcolj[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1406:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1406 | der2(idcoli[0], idcolj[0]) = creg_lib_helper.cpp:288:17rossr: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] ess(0,0); | 288 | ~~~~ ^~~~~~~~~ int nrows = y.size(); | reg_lib2.cpp:1407:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1407 | ~~~~~ ~~^~~~~~ der2(idcoli[0reg_lib_helper.cpp:354:28: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] ], idcolj[1]) = crossress(0 354 | ini,1); | ~~~~ ^~~~~~~~~ _vars.dof_mulreg_lib2.cpp:1407:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1407 | t = my.n_cols; der2(idcoli[0], | ~ ~~~^~~~~~ idcolj[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1408:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1408 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1408:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1408 | der2(idcoli[1], idcolj[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1409:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1409 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1409:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1409 | der2(idcoli[1], idcolj[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1411:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1411 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1411:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1411 | der2(idcolj[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1412:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1412 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1412:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1412 | der2(idcolj[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1413:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1413 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1413:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1413 | der2(idcolj[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1414:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1414 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1414:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1414 | der2(idcolj[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1419:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1419 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1419:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1419 | der2(idcoli[0], idcoli[0]) = crossress(0,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1420:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1420 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1420:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1420 | der2(idcoli[0], idcoli[1]) = crossress(0,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1421:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1421 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1421:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1421 | der2(idcoli[1], idcoli[0]) = crossress(1,0); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1422:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1422 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1422:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 1422 | der2(idcoli[1], idcoli[1]) = crossress(1,1); | ~~~~ ^~~~~~~~~ reg_lib2.cpp:1187:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1187 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1187:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1187 | int n = x.n_rows, D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1192:23: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 1192 | int poiasize = poia.size(); | ~~~~~~~~ ~~~~~^~~~~~ reg_lib2.cpp:1200:9: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1200 | n = Y.n_rows; | ~ ~~^~~~~~ reg_lib2.cpp:1201:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1201 | int d = Y.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1446:13: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 1446 | int n = y.size(), d = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1446:27: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1446 | int n = y.size(), d = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1639:19: warning: implicit conversion turns floating-point number into integer: 'typename enable_if2>::value && resolves_to_vector>::yes, typename Col::pod_type>::result' (aka 'double') to 'int' [-Wfloat-conversion] 1639 | int con = var(y)*(n-1); | ~~~ ~~~~~~^~~~~~ reg_lib2.cpp:1634:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1634 | int n = x.n_rows; | ~ ~~^~~~~~ reg_lib2.cpp:1635:13: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1635 | int D = x.n_cols; | ~ ~~^~~~~~ reg_lib2.cpp:1779:6: warning: implicit conversion turns floating-point number into integer: 'const double' to 'bool' [-Wfloat-conversion] 1779 | if(ret_stat){ | ~~ ^~~~~~~~ reg_lib2.cpp:1841:8: warning: implicit conversion turns floating-point number into integer: 'const double' to 'bool' [-Wfloat-conversion] 1841 | if(ret_stat){ | ~~ ^~~~~~~~ reg_lib2.cpp:1901:10: warning: implicit conversion turns floating-point number into integer: 'const double' to 'bool' [-Wfloat-conversion] 1901 | if(ret_stat){ | ~~ ^~~~~~~~ reg_lib2.cpp:1773:20: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1773 | int nrows = xinc.n_rows; | ~~~~~ ~~~~~^~~~~~ reg_lib2.cpp:1774:33: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1774 | int selectedColumnSize = xinc.n_cols; | ~~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~ reg_lib2.cpp:1776:20: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 1776 | int idxsz = xout.n_cols, inttype = ini_vars.inttype; | ~~~~~ ~~~~~^~~~~~ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 reg_lib_helper.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from reg_lib_helper.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from reg_lib_helper.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from reg_lib2.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from reg_lib2.cpp:7: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from reg_lib_helper.cpp:7: ../inst/include/Rfast2/templates.h:586:19: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 586 | const int n=x.size(); | ~ ~~^~~~~~ reg_lib_helper.cpp:347:14: note: in instantiation of function template specialization 'design_matrix_helper, Rcpp::Vector<14>>' requested here 347 | mat my = design_matrix_helper(as(wrap(y))); | ^ 39 warnings and 3 errors generated. In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:69:44: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, true>' requested here 69 | const bool status = glue_solve_gen_full::apply( out, X.A, X.B, X.aux_uword ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_solve_gen_full>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eGlue_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Mat, arma::glue_solve_gen_full>>::Proxy' requested here 37 | , P2(in_B) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_plus.hpp:127:10: note: in instantiation of member function 'arma::eGlue, arma::Glue, arma::Mat, arma::glue_solve_gen_full>, arma::eglue_plus>::eGlue' requested here 127 | return eGlue(X, Y); | ^ reg_lib2.cpp:33:16: note: in instantiation of function template specialization 'arma::operator+, arma::Glue, arma::Mat, arma::glue_solve_gen_full>>' requested here 33 | b_new=b_old+solve(L2,L1,solve_opts::fast); | ^ make[2]: *** [reg_lib_helper.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c utilities.cpp -o utilities.o In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ reg_lib2.cpp:53:36: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 53 | mat der(d,1),der2(d,d),crossxy = cross_x_y(x, y); | ^ In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::op_htrans>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:69:44: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Op, arma::op_htrans>, true>' requested here 69 | const bool status = glue_solve_gen_full::apply( out, X.A, X.B, X.aux_uword ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6240:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Op, arma::op_htrans>>' requested here 6240 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Proxy.hpp:503:7: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Op, arma::op_htrans>, arma::glue_solve_gen_full>' requested here 503 | : Q(A) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/eGlue_meat.hpp:37:5: note: in instantiation of member function 'arma::Proxy, arma::Op, arma::op_htrans>, arma::glue_solve_gen_full>>::Proxy' requested here 37 | , P2(in_B) | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/operator_minus.hpp:166:10: note: in instantiation of member function 'arma::eGlue, arma::Glue, arma::Op, arma::op_htrans>, arma::glue_solve_gen_full>, arma::eglue_minus>::eGlue' requested here 166 | return eGlue(X, Y); | ^ reg_lib2.cpp:267:11: note: in instantiation of function template specialization 'arma::operator-, arma::Glue, arma::Op, arma::op_htrans>, arma::glue_solve_gen_full>>' requested here 267 | be = be -solve(derb2, derb.t(),solve_opts::fast); | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:118:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 118 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ reg_lib2.cpp:326:44: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 326 | ret(2) = (b_new[d-1]*b_new[d-1])/(pheta*((mat)arma::inv(L2))(d-1,d-1)); | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:135:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 135 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:177:28: warning: implicit conversion from 'const unsigned long long' to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 177 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * max_abs_Aii * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:139:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_diag' requested here 139 | if(inv_state.is_diag) { return op_pinv::apply_diag(out, A, T(0) ); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ reg_lib2.cpp:326:44: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 326 | ret(2) = (b_new[d-1]*b_new[d-1])/(pheta*((mat)arma::inv(L2))(d-1,d-1)); | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:237:28: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 237 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * abs_eigval[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:140:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_sym' requested here 140 | if(inv_state.is_sym ) { return op_pinv::apply_sym (out, A, T(0), uword(0)); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ reg_lib2.cpp:326:44: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 326 | ret(2) = (b_new[d-1]*b_new[d-1])/(pheta*((mat)arma::inv(L2))(d-1,d-1)); | ^ In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:311:50: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 311 | if( (tol == T(0)) && (s.n_elem > 0) ) { tol = (std::max)(n_rows, n_cols) * s[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:142:23: note: in instantiation of function template specialization 'arma::op_pinv::apply_gen' requested here 142 | return op_pinv::apply_gen(out, A, T(0), uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ reg_lib2.cpp:326:44: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 326 | ret(2) = (b_new[d-1]*b_new[d-1])/(pheta*((mat)arma::inv(L2))(d-1,d-1)); | ^ In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 sf.cpp:6: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:197:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 197 | mx=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:501:9: note: in instantiation of function template specialization 'maximum' requested here 501 | maximum(key.begin(),key.end(),mx); | ^ reg_lib2.cpp:560:17: note: in instantiation of function template specialization 'group_sum_helper, arma::Col, Rcpp::Vector<13>>' requested here 560 | sx.col(1) = group_sum_helper(Xi, id, &idmn,&idmx); | ^ In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:214:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 214 | mn=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:504:9: note: in instantiation of function template specialization 'minimum' requested here 504 | minimum(key.begin(),key.end(),mn); | ^ reg_lib2.cpp:560:17: note: in instantiation of function template specialization 'group_sum_helper, arma::Col, Rcpp::Vector<13>>' requested here 560 | sx.col(1) = group_sum_helper(Xi, id, &idmn,&idmx); | ^ In file included from reg_lib2.cpp:7: ../inst/include/Rfast2/templates.h:563:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 563 | const int ncl=x.n_cols; | ~~~ ~~^~~~~~ reg_lib2.cpp:685:8: note: in instantiation of function template specialization 'cross_x, arma::Mat>' requested here 685 | xx = cross_x(x); | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:69:44: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::eGlue, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, true>' requested here 69 | const bool status = glue_solve_gen_full::apply( out, X.A, X.B, X.aux_uword ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6217:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::eGlue, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>>' requested here 6217 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:524:5: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::eGlue, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::glue_solve_gen_full>' requested here 524 | : Mat(X.get_ref(), arma_vec_indicator(), 1) | ^ reg_lib2.cpp:700:12: note: in instantiation of function template specialization 'arma::Col::Col, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::eGlue, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::glue_solve_gen_full>>' requested here 700 | vec b2 = solve(xx - d(0)* cross_x_y(sx.each_col()/oneplnid, sx), sxy - | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:118:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 118 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ reg_lib2.cpp:721:14: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::eOp, arma::eop_scalar_times>, arma::eglue_minus>, arma::op_inv_gen_default>' requested here 721 | vec seb = ((mat)arma::inv(xx-d(0)*cross_x_y(sx.each_col()/oneplnid,sx))).diag()*info2; | ^ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:135:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 135 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ In file included from sf.cpp:6: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::Col, arma::glue_times>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:69:44: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, arma::glue_times>, arma::Glue, arma::Col, arma::glue_times>, true>' requested here 69 | const bool status = glue_solve_gen_full::apply( out, X.A, X.B, X.aux_uword ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6217:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat, arma::glue_times>, arma::Glue, arma::Col, arma::glue_times>>' requested here 6217 | glue_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:524:5: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::Mat, arma::glue_times>, arma::Glue, arma::Col, arma::glue_times>, arma::glue_solve_gen_full>' requested here 524 | : Mat(X.get_ref(), arma_vec_indicator(), 1) | ^ reg_lib2.cpp:875:15: note: in instantiation of function template specialization 'arma::Col::Col, arma::Mat, arma::glue_times>, arma::Glue, arma::Col, arma::glue_times>, arma::glue_solve_gen_full>>' requested here 875 | colvec b1 = solve(xt * x, xt * lgy01,solve_opts::fast); | ^ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from reg_lib2.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::op_htrans>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:53:31: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Op, arma::op_htrans>, false>' requested here 53 | return glue_solve_gen_full::apply( out, A_expr, B_expr, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:35:47: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 35 | const bool status = glue_solve_gen_default::apply(out, X.A, X.B); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_default::apply, arma::Op, arma::op_htrans>>' requested here 6257 | glue_type::apply(*this, X); | ^ reg_lib2.cpp:1018:8: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Op, arma::op_htrans>, arma::glue_solve_gen_default>' requested here 1018 | XX = solve(xx, X.t()); | ^ In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ 199 warnings and 3 errors generated. make[2]: *** [reg_lib2.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c weib_regs.cpp -o weib_regs.o In file included from sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 sf.cpp:5: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ 57 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c welch_tests.cpp -o welch_tests.o In file included from sf.cpp:6: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from sf.cpp:6: In file included from ./mmp_c.h:13: In file included from ./cts.h:11: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ 28 warnings and 3 errors generated. make[2]: *** [sf.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/zigg/include' -I'/Users/ripley/R/Library/Rfast/include' -I'/Users/ripley/R/Library/BH/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c wild_boot.cpp -o wild_boot.o In file included from univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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; | ~ ^~ skel_helper.cpp:48:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] 48 | unsigned int xdim = dc[x]; | ~~~~ ^~~~~ skel_helper.cpp:49:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] 49 | unsigned int ydim = dc[y]; | ~~~~ ^~~~~ skel_helper.cpp:67:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] 67 | unsigned int xdim = dc[x]; | ~~~~ ^~~~~ skel_helper.cpp:68:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] 68 | unsigned int ydim = dc[y]; | ~~~~ ^~~~~ skel_helper.cpp:73:27: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] 73 | prod[i] = prod[i - 1] * dc[cs[i - 1]]; | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~ skel_helper.cpp:69:32: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 69 | unsigned int nsamples = data.n_rows; | ~~~~~~~~ ~~~~~^~~~~~ skel_helper.cpp:116:46: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 116 | vec result = g2Test(data, x, y, &cs[0], cs.size(), &dc[0]); | ~~~~~~ ~~~^~~~~~ skel_helper.cpp:129:10: warning: implicit conversion turns floating-point number into integer: 'long double' to 'unsigned int' [-Wfloat-conversion] 129 | return std::round(factorial(a)/((long double)(factorial(b)*factorial(a-b)))); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ skel_helper.cpp:129:21: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 129 | return std::round(factorial(a)/((long double)(factorial(b)*factorial(a-b)))); | ^~~~~~~~~~~~~ skel_helper.cpp:136:32: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 136 | combn_ds(i, combn_col) = combn_data[i]; | ~ ^~~~~~~~~~~~~ skel_helper.cpp:141:39: warning: implicit conversion from 'unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 141 | combn_data[combn_ds.n_rows - n] = vals[i]; | ~ ^~~~~~~ skel_helper.cpp:149:25: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 149 | unsigned int n = inds.size(); | ~ ~~~~~^~~~~~ skel_helper.cpp:158:25: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 158 | unsigned int n = inds.size(); | ~ ~~~~~^~~~~~ skel_helper.cpp:167:42: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32] 167 | const unsigned int ncols = choose(vals.size(), n); | ~~~~~~ ~~~~~^~~~~~ skel_helper.cpp:205:17: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 205 | double dm = n - ((uvec)arma::find(indz > -1)).size() - 3.0; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ In file included from univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 univariate_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from univariate_mle.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ univariate_mle.cpp:31:19: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 31 | double lik1 = x1.n_elem * logs + accu(foreach(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:32:18: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 32 | double der = x1.n_elem - 2 * (es1 * accu(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:40:19: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | double lik2 = x1.n_elem * logs + accu(foreach(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:46:12: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 46 | der = x1.n_elem - 2 * (es1)*accu(down); | ~~~^~~~~~ ~ univariate_mle.cpp:52:13: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 52 | lik2 = x1.n_elem * logs + accu(foreach(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:55:28: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 55 | double loglik = lik2 - x1.n_elem * logdp; | ~~~^~~~~~ ~ univariate_mle.cpp:20:20: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 20 | int k = x1.n_elem / 4; | ~ ~~~~~~~~~~^~~ univariate_mle.cpp:21:25: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 21 | int k1 = 3 * x1.n_elem / 4; | ~~ ~~~~~~~~~~~~~~^~~ univariate_mle.cpp:76:19: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 76 | double lik1 = x1.n_elem * logs + accu(log(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:77:18: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 77 | double der = x1.n_elem - 2 * (es1 * accu(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:85:19: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | double lik2 = x1.n_elem * logs + accu(log(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:91:12: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | der = x1.n_elem - 2 * (es1)*accu(down); | ~~~^~~~~~ ~ univariate_mle.cpp:97:13: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 97 | lik2 = x1.n_elem * logs + accu(log(down)); | ~~~^~~~~~ ~ univariate_mle.cpp:100:28: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 100 | double loglik = lik2 - x1.n_elem * logdp; | ~~~^~~~~~ ~ univariate_mle.cpp:64:20: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 64 | int k = x1.n_elem / 4; | ~ ~~~~~~~~~~^~~ univariate_mle.cpp:65:25: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 65 | int k1 = 3 * x1.n_elem / 4; | ~~ ~~~~~~~~~~~~~~^~~ univariate_mle.cpp:113:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 113 | NumericMatrix ff(3, x1.n_cols); | ~~ ~~~^~~~~~ univariate_mle.cpp:164:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 164 | vec z(min_of_vector + 1); | ~ ~~~~~~~~~~~~~~^~~ univariate_mle.cpp:173:14: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 173 | double n2 = accu(x1 == min_of_vector); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ univariate_mle.cpp:174:17: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 174 | double n1 = x1.n_elem - n2; | ~~~^~~~~~ ~ univariate_mle.cpp:195:18: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 195 | dera = sx - x1.n_elem * expa1 + n2 * (dot(z, expa1z)) / down; | ~~~^~~~~~ ~ univariate_mle.cpp:196:78: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | dera2 = n2 * (dot(square(z), expa1z) - (dotz * dotz)) / (down * down) - x1.n_elem * expa1; | ~~~^~~~~~ ~ univariate_mle.cpp:200:31: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 200 | double loglik = sx * a1 - x1.n_elem * expa1 - accu(lgamma(x1 + 1)) + n2 * log(down); | ~~~^~~~~~ ~ univariate_mle.cpp:210:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'uword' (aka 'unsigned long long') [-Wfloat-conversion] 210 | vec z(min_of_vector + 1); | ~ ~~~~~~~~~~~~~~^~~ univariate_mle.cpp:219:14: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 219 | double n2 = accu(x1 == min_of_vector); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ univariate_mle.cpp:220:17: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 220 | double n1 = x1.n_elem - n2; | ~~~^~~~~~ ~ univariate_mle.cpp:241:18: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 241 | dera = sx - x1.n_elem * expa1 + n2 * (dot(z, expa1z)) / down; | ~~~^~~~~~ ~ univariate_mle.cpp:242:78: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 242 | dera2 = n2 * (dot(square(z), expa1z) - (dotz * dotz)) / (down * down) - x1.n_elem * expa1; | ~~~^~~~~~ ~ univariate_mle.cpp:246:31: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 246 | double loglik = sx * a1 - x1.n_elem * expa1 - accu(lgamma(x1 + 1)) + n2 * log(down); | ~~~^~~~~~ ~ univariate_mle.cpp:259:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 259 | NumericMatrix ff(3, x1.n_cols); | ~~ ~~~^~~~~~ univariate_mle.cpp:358:57: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 358 | double m = 0.0, es = 0.0, s = 0.0, lik2 = 0.0, n1 = y1.n_elem; | ~~ ~~~^~~~~~ univariate_mle.cpp:360:9: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 360 | if (x1.n_elem - n1 > 0) | ~~~^~~~~~ ~ univariate_mle.cpp:376:33: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 376 | double lik1 = com - com1 - y1.n_elem * s - com2; | ~~~^~~~~~ ~ univariate_mle.cpp:357:44: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 357 | vec mod = weibull_mle2(x1_in_di, x1_in_di.n_elem, tol, 100); | ~~~~~~~~~~~~ ~~~~~~~~~^~~~~~ univariate_mle.cpp:452:57: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 452 | double m = 0.0, es = 0.0, s = 0.0, lik2 = 0.0, n1 = y1.n_elem; | ~~ ~~~^~~~~~ univariate_mle.cpp:454:9: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 454 | if (x1.n_elem - n1 > 0) | ~~~^~~~~~ ~ univariate_mle.cpp:470:33: warning: implicit conversion from 'const uword' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 470 | double lik1 = com - com1 - y1.n_elem * s - com2; | ~~~^~~~~~ ~ univariate_mle.cpp:450:44: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 450 | vec mod = weibull_mle2(x1_in_di, x1_in_di.n_elem, tol, 100); | ~~~~~~~~~~~~ ~~~~~~~~~^~~~~~ univariate_mle.cpp:534:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 534 | NumericMatrix ff(4, x1.n_cols); | ~~ ~~~^~~~~~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:118:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 118 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_inv.hpp:51:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat>>' requested here 51 | const bool status = op_inv_gen_default::apply_direct(out, X.get_ref(), "inv()"); | ^ skel_helper.cpp:193:8: note: in instantiation of function template specialization 'arma::inv, arma::Mat>>' requested here 193 | if(inv(rho, R.submat(indices, indices))) { | ^ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:135:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 135 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ In file included from univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:177:28: warning: implicit conversion from 'const unsigned long long' to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 177 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * max_abs_Aii * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:139:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_diag' requested here 139 | if(inv_state.is_diag) { return op_pinv::apply_diag(out, A, T(0) ); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_inv.hpp:51:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat>>' requested here 51 | const bool status = op_inv_gen_default::apply_direct(out, X.get_ref(), "inv()"); | ^ skel_helper.cpp:193:8: note: in instantiation of function template specialization 'arma::inv, arma::Mat>>' requested here 193 | if(inv(rho, R.submat(indices, indices))) { | ^ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:In file included from univariate_mle.cpp:2: In file included from 237:28: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h 237 | if(tol:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo == T(0)) :520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] { tol = 90 | for(uw (std::max)(A.nord i=0; i < N; ++_rows, A.n_coi) { ls) * ax_mem[i] = eT( start +bs_eigval[0] T(i*inc) );* std::numeric_limits:: } | epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | 140:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_sym' requested here internal_regspac 140 | e_var_delta(x, if(inv_statstarte.is_sym ) , del { return op_pinv::ata, end); | ^ pply_sym (ou/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: t, A, Tnote: in instantiation of function template specialization 'arma::regspace, double>' requested here (0), uword(0))248 | r; } | ^ eturn regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat>, false>' requested here 49 | ret/Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94urn op_inv_ge | for(uword i=0; i n_full::appl< N; y_direct(ou++i) { x_mem[i] =t, expr, ca eT( start - Tller_sig, uword(0)); | ^ (i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_inv.hpp:51:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat>>' requested here 51 | const bool status = op_inv_gen_default::apply_direct(out, X.get_ref(), "inv()"); | ^ skel_helper.cpp:193:8: note: in instantiation of function template specialization 'arma::inv, arma::Mat>>' requested here 193 | if(inv(rho, R.submat(indices, indices))) { | ^ In file included from univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 univariate_mle.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from skel_helper.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:311:50: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 311 | if( (tol == T(0)) && (s.n_elem > 0) ) { tol = (std::max)(n_rows, n_cols) * s[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:142:23: note: in instantiation of function template specialization 'arma::op_pinv::apply_gen' requested here 142 | return op_pinv::apply_gen(out, A, T(0), uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, arma::Mat>, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_inv.hpp:51:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct, arma::Mat>>' requested here 51 | const bool status = op_inv_gen_default::apply_direct(out, X.get_ref(), "inv()"); | ^ skel_helper.cpp:193:8: note: in instantiation of function template specialization 'arma::inv, arma::Mat>>' requested here 193 | if(inv(rho, R.submat(indices, indices))) { | ^ In file included from univariate_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from univariate_mle.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ 67 warnings and 3 errors generated. make[2]: *** [univariate_mle.o] Error 1 In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ 42 warnings generated. In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:16: ../inst/include/Rfast2/helpers.hpp:236:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 236 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:262:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 262 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/helpers.hpp:289:9: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 289 | i = s - f.begin(); | ~ ~~^~~~~~~~~~~ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: ../inst/include/Rfast2/matrix.hpp:61:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 61 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ ../inst/include/Rfast2/matrix.hpp:102:35: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:102:25: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 102 | NumericMatrix f(probs.n_elem, x.ncol()); | ~ ~~~~~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:120:12: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 120 | i = s - x.begin(); | ~ ~~^~~~~~~~~~~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:791: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 weib_regs.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 weib_regs.cpp:8: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ weib_regs.cpp:18:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int n = Y.size(), d = X.ncol(); | ~ ~~^~~~~~ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:31: 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 welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 welch_tests.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:3: /Users/ripley/R/Library/Rfast/include/Rfast/types.hpp:110:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'type' (aka 'int') [-Wfloat-conversion] 110 | inline static type val= NA_REAL; | ~~~ ^~~~~~~ /Users/ripley/R/R-devel/include/R_ext/Arith.h:58:18: note: expanded from macro 'NA_REAL' 58 | #define NA_REAL R_NaReal | ^~~~~~~~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ j[ie] = cp; | ~ ^~ In file included from wild_boot.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from welch_tests.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ welch_tests.cpp:48:14: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 48 | k = ni.size(); | ~ ~~~^~~~~~ welch_tests.cpp:108:14: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 108 | k = ni.size(); | ~ ~~~^~~~~~ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:1085:17: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1085:57: error: use of undeclared identifier 'DATAPTR' 1085 | T *xx=(T *) DATAPTR(x),*xend=xx+ncol*nrow,*yy=(T *) DATAPTR(y),yvalue,*x3; | ^~~~~~~ ../inst/include/Rfast2/templates.h:1086:34: error: use of undeclared identifier 'DATAPTR' 1086 | RETURN_TYPE *m=(RETURN_TYPE*)DATAPTR(mat); | ^~~~~~~ wild_boot.cpp:16:14: warning: implicit conversion loses integer precision: 'typename enable_if2>::value && resolves_to_vector>::yes, typename Col::elem_type>::result' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 16 | int colsz = sum(vecReps); | ~~~~~ ^~~~~~~~~~~~ wild_boot.cpp:105:12: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 105 | int d = x.n_cols, M = tab.n_elem, gmn, gmx; | ~ ~~^~~~~~ wild_boot.cpp:105:28: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 105 | int d = x.n_cols, M = tab.n_elem, gmn, gmx; | ~ ~~~~^~~~~~ wild_boot.cpp:148:29: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 148 | unsigned int j = ind(k) - 1; | ~ ~~~~~~~^~~ wild_boot.cpp:180:23: warning: implicit conversion loses integer precision: 'const unsigned long long' to 'unsigned int' [-Wshorten-64-to-32] 180 | for (unsigned int j : ind) | ~ ^ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from weib_regs.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from weib_regs.cpp:8: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(start + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:520: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ weib_regs.cpp:122:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 122 | ret(i,0) = 2*(lik2-lik0); | ^ In file included from weib_regs.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 31 warnings and 3 errors generated. In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:15: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:36:19: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 36 | ff(i) = Rfast::TrimMean(x.col(i), a); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ make[2]: *** [weib_regs.o] Error 1 ../inst/include/Rfast2/vector.hpp:99:19: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const int' [-Wshorten-64-to-32] 99 | const int n = x.size(); | ~ ~~^~~~~~ ../inst/include/Rfast2/matrix.hpp:93:12: note: in instantiation of function template specialization 'Rfast::TrimMean>' requested here 93 | ff(i) = TrimMean(x.row(i), a); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:100:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 100 | int b1 = a * n; | ~~ ~~^~~ ../inst/include/Rfast2/vector.hpp:101:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 101 | int b11 = std::ceil(b1); | ~~~ ^~~~~~~~~~~~~ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:122:17: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Col, arma::Col>' requested here 122 | ff.col(i) = Quantile(y, probs); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/SpMat_meat.hpp:4431:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4431 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/fn_misc.hpp:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/matrix.hpp:166:15: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Row, arma::Col>' requested here 166 | f.row(i) = Quantile(x.row(i), probs); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ utilities.cpp:29:20: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 29 | l.push_back(x(j, i)); | ^ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:40:33: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~~~~^~~ ~ utilities.cpp:186:21: note: in instantiation of function template specialization 'Rfast::Quantile, arma::Col, arma::Col>' requested here 186 | __result = Rfast::Quantile(x, probs, parallel); | ^ In file included from utilities.cpp:10: In file included from ../inst/include/Rfast2.h:5: In file included from ../inst/include/Rfast2/matrix.hpp:17: ../inst/include/Rfast2/vector.hpp:48:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 48 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:61:26: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 61 | double h = (x.size() - 1) * probs[i] + 1; | ~~~~~~~~~^~~ ~ ../inst/include/Rfast2/vector.hpp:33:37: warning: implicit conversion loses integer precision: 'uword' (aka 'unsigned long long') to 'const unsigned int' [-Wshorten-64-to-32] 33 | const unsigned int nprobs = probs.size(); | ~~~~~~ ~~~~~~^~~~~~ ../inst/include/Rfast2/vector.hpp:40:83: warning: implicit conversion turns floating-point number into integer: 'double' to 'const int' [-Wfloat-conversion] 40 | const int mxelem = (x.size() - 1) * (*max_element(probs.begin(), probs.end())) + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/Rfast2/vector.hpp:49:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 49 | int hf = h; | ~~ ^ ../inst/include/Rfast2/vector.hpp:63:14: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 63 | int hf = h; | ~~ ^ In file included from utilities.cpp:7: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:693: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:10892: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:115:63: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32] 115 | RcppArmadillo::fill_ptr( memptr(), X, n_elem ) ; | ~~~~~~~~~~~~~ ^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::Vector<14>>' requested here 29 | : Mat( X ) | ^ utilities.cpp:186:53: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::Vector<14>>' requested here 186 | __result = Rfast::Quantile(x, probs, parallel); | ^ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:30: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:141:33: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 141 | f = (k * f + p + q) / (k*k - v*v); | ~^~ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:355:11: note: in instantiation of function template specialization 'boost::math::detail::temme_ik>' requested here 355 | temme_ik(u, x, &Ku, &Ku1, pol); // Temme series | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:233:4: note: in instantiation of function template specialization 'boost::math::detail::bessel_ik>' requested here 233 | bessel_ik(v, x, &result_I, &result_K, need_i, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:249:16: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp_final>' requested here 249 | T r = cyl_bessel_i_imp_final(T(v), T(-x), pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:590:73: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp>' requested here 590 | return policies::checked_narrowing_cast(detail::cyl_bessel_i_imp(static_cast(v), static_cast(x), forwarding_policy()), "boost::math::cyl_bessel_i<%1%>(%1%,%1%)"); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:596:11: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i>' requested here 596 | return cyl_bessel_i(v, x, policies::policy<>()); | ^ ../inst/include/Rfast2/templates_rfast2.h:137:60: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i' requested here 137 | return Bessel(x, nu, expon_scaled, boost::math::cyl_bessel_i); | ^ utilities.cpp:217:14: note: in instantiation of function template specialization 'bessel>' requested here 217 | __result = bessel(x, nu, type, expon_scaled); | ^ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:30: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:141:14: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 141 | f = (k * f + p + q) / (k*k - v*v); | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:142:14: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 142 | p /= k - v; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:143:14: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 143 | q /= k + v; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:144:17: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 144 | h = p - k * f; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:145:28: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 145 | coef *= x * x / (4 * k); | ~ ~~^~~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:244:16: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 244 | a -= 2 * (k - 1); | ~~ ~~^~~~~~~~~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:359:11: note: in instantiation of function template specialization 'boost::math::detail::CF2_ik>' requested here 359 | CF2_ik(u, x, &Ku, &Ku1, pol); // continued fraction CF2_ik | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:233:4: note: in instantiation of function template specialization 'boost::math::detail::bessel_ik>' requested here 233 | bessel_ik(v, x, &result_I, &result_K, need_i, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:249:16: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp_final>' requested here 249 | T r = cyl_bessel_i_imp_final(T(v), T(-x), pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:590:73: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp>' requested here 590 | return policies::checked_narrowing_cast(detail::cyl_bessel_i_imp(static_cast(v), static_cast(x), forwarding_policy()), "boost::math::cyl_bessel_i<%1%>(%1%,%1%)"); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:596:11: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i>' requested here 596 | return cyl_bessel_i(v, x, policies::policy<>()); | ^ ../inst/include/Rfast2/templates_rfast2.h:137:60: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i' requested here 137 | return Bessel(x, nu, expon_scaled, boost::math::cyl_bessel_i); | ^ utilities.cpp:217:14: note: in instantiation of function template specialization 'bessel>' requested here 217 | __result = bessel(x, nu, type, expon_scaled); | ^ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:30: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:254:19: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 254 | C *= -a / k; | ~ ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:185:22: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 185 | b = 2 * (v + k) / x; | ~ ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_ik.hpp:412:14: note: in instantiation of function template specialization 'boost::math::detail::CF1_ik>' requested here 412 | CF1_ik(v, x, &fv, pol); // continued fraction CF1_ik | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:233:4: note: in instantiation of function template specialization 'boost::math::detail::bessel_ik>' requested here 233 | bessel_ik(v, x, &result_I, &result_K, need_i, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:249:16: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp_final>' requested here 249 | T r = cyl_bessel_i_imp_final(T(v), T(-x), pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:590:73: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_i_imp>' requested here 590 | return policies::checked_narrowing_cast(detail::cyl_bessel_i_imp(static_cast(v), static_cast(x), forwarding_policy()), "boost::math::cyl_bessel_i<%1%>(%1%,%1%)"); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:596:11: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i>' requested here 596 | return cyl_bessel_i(v, x, policies::policy<>()); | ^ ../inst/include/Rfast2/templates_rfast2.h:137:60: note: in instantiation of function template specialization 'boost::math::cyl_bessel_i' requested here 137 | return Bessel(x, nu, expon_scaled, boost::math::cyl_bessel_i); | ^ utilities.cpp:217:14: note: in instantiation of function template specialization 'bessel>' requested here 217 | __result = bessel(x, nu, type, expon_scaled); | ^ In file included from welch_tests.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from welch_tests.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:26: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:164:26: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 164 | b = 2 * (v + k) / x; | ~ ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jn.hpp:95:30: note: in instantiation of function template specialization 'boost::math::detail::CF1_jy>' requested here 95 | boost::math::detail::CF1_jy(static_cast(n), x, &fn, &s, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:151:14: note: in instantiation of function template specialization 'boost::math::detail::bessel_jn>' requested here 151 | return bessel_jn(ival, x, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:548:73: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_j_imp>' requested here 548 | return policies::checked_narrowing_cast(detail::cyl_bessel_j_imp(v, static_cast(x), tag_type(), forwarding_policy()), "boost::math::cyl_bessel_j<%1%>(%1%,%1%)"); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:554:11: note: in instantiation of function template specialization 'boost::math::cyl_bessel_j>' requested here 554 | return cyl_bessel_j(v, x, policies::policy<>()); | ^ ../inst/include/Rfast2/templates_rfast2.h:139:60: note: in instantiation of function template specialization 'boost::math::cyl_bessel_j' requested here 139 | return Bessel(x, nu, expon_scaled, boost::math::cyl_bessel_j); | ^ utilities.cpp:217:14: note: in instantiation of function template specialization 'bessel>' requested here 217 | __result = bessel(x, nu, type, expon_scaled); | ^ In file included from welch_tests.cpp:6: ../inst/include/Rfast2/templates.h:197:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 197 | mx=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:501:9: note: in instantiation of function template specialization 'maximum' requested here 501 | mIn file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:26: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:121:37: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] a 121 | ximum(key.begin(),key.end(),mx); | ^ f = (k * f + p + q) / (k*k - v2); | ~^~ ~ welch_tests.cpp:50:11: note: in instantiation of function template specialization 'group_sum_helper, arma::Col, arma::Col>' requested here /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:427:16: note: in instantiation of function template specialization 'boost::math::detail::temme_jy>' requested here 427 | if(temme_jy(u, x, &Yu, &Yu1, pol)) 50 | // Temme m series | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:104:4: note: in instantiation of function template specialization 'boost::math::detail::bessel_jy>' requested here 104 | bessel_jy(v, x, &result_J, &y, need_j, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:123:16: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_j_imp_final>' requested here 123 | T r = cyl_bessel_j_imp_final(T(v), T(-=x), t, pol); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:153:11: note: in instantiation of function template specialization 'boost::math::detail::cyl_bessel_j_imp>' requested here group 153 | return c_sumyl_bessel_j__imp(v, x, bessel_no_int_tag(), pol); | ^h elp/Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpper>' requested here ,vec,Col>(y, ina, &idmn,&idmx); | ^ In file included from welch_tests.cpp:6: ../inst/include/Rfast2/templates.h:214:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 548 | ret 214 | urn mn=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:policies:504:9: note: in instantiation of function template specialization 'minimum' requested here :checked_narrowing_cast(key.begin(),kelicy>(detail::cyl_y.end(),mn); | ^ bessel_welch_tests.cpp:50:11: j_imp, arma::Col, arma::Col>' requested here 50pe>(v, static_cast(x), tag_type(), forwarding_policy()), "boost::math::cyl_b m = group_sum_helper(%1%,%1%)ec,vec,Col>(y, ina, &idmn,&idmx); | ^ "); | ^ /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:554:11: note: in instantiation of function template specialization 'boost::math::cyl_bessel_j>' requested here 554 | return cyl_bessel_j(v, x, policies::policy<>()); | ^ ../inst/include/Rfast2/templates_rfast2.h:139:60: note: in instantiation of function template specialization 'boost::math::cyl_bessel_j' requested here 139 | return Bessel(x, nu, expon_scaled, boost::math::cyl_bessel_j); | ^ utilities.cpp:217:14: note: in instantiation of function template specialization 'bessel>' requested here 217 | __result = bessel(x, nu, type, expon_scaled); | ^ In file included from utilities.cpp:11: In file included from ../inst/include/Rfast2/templates_rfast2.h:2: In file included from /Users/ripley/R/Library/BH/include/boost/math/special_functions/bessel.hpp:26: /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:121:18: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 121 | f = (k * f + p + q) / (k*k - v2); | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:122:18: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | p /= k - v; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:123:18: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 123 | q /= k + v; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:125:21: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 125 | h = p - k * g; | ^ ~ /Users/ripley/R/Library/BH/include/boost/math/special_functions/detail/bessel_jy.hpp:126:33: warning: implicit conversion from 'unsigned long' to 'long double' may lose precision [-Wimplicit-int-float-conversion] 126 | coef *= coef_mult / k; | ~ ^ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ welch_tests.cpp:83:10: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 83 | ret(i,0) = stat/(k-1)/(1+2*((double)k-2)/k2min1*H); | ^ In file included from welch_tests.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 ) ) ; | ~~~~~~ ^ 34 warnings and 3 errors generated. 85 warnings and 3 errors generated. make[2]: *** [welch_tests.o] Error 1 make[2]: *** [utilities.o] Error 1 In file included from wild_boot.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:22:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 22 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from wild_boot.cpp:6: In file included from ../inst/include/Rfast2/templates.h:11: In file included from ../inst/include/Rfast2/parallel.h:7: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:28:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 28 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:38:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 38 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:41:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 41 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:197:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 197 | mx=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:501:9: note: in instantiation of function template specialization 'maximum' requested here 501 | maximum(key.begin(),key.end(),mx); | ^ wild_boot.cpp:58:16: note: in instantiation of function template specialization 'group_sum_helper, arma::Col, arma::Col>' requested here 58 | ret.col(i) = group_sum_helper>(x.col(i), cluster, &idmn, &idmx); | ^ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:214:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 214 | mn=xxx; | ~^~~ ../inst/include/Rfast2/templates.h:504:9: note: in instantiation of function template specialization 'minimum' requested here 504 | minimum(key.begin(),key.end(),mn); | ^ wild_boot.cpp:58:16: note: in instantiation of function template specialization 'group_sum_helper, arma::Col, arma::Col>' requested here 58 | ret.col(i) = group_sum_helper>(x.col(i), cluster, &idmn, &idmx); | ^ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:563:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 563 | const int ncl=x.n_cols; | ~~~ ~~^~~~~~ wild_boot.cpp:109:11: note: in instantiation of function template specialization 'cross_x, arma::Mat>' requested here 109 | mat xx = cross_x(x); | ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:118:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 118 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ wild_boot.cpp:110:11: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 110 | mat br = arma::inv(xx); | ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:734: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:135:45: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 135 | if((status == false) || (local_rcond < ((std::max)(local_size, uword(1)) * std::numeric_limits::epsilon())) || arma_isnan(local_rcond)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:177:28: warning: implicit conversion from 'const unsigned long long' to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 177 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * max_abs_Aii * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:139:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_diag' requested here 139 | if(inv_state.is_diag) { return op_pinv::apply_diag(out, A, T(0) ); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ wild_boot.cpp:110:11: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 110 | mat br = arma::inv(xx); | ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:237:28: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 237 | if(tol == T(0)) { tol = (std::max)(A.n_rows, A.n_cols) * abs_eigval[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:140:48: note: in instantiation of function template specialization 'arma::op_pinv::apply_sym' requested here 140 | if(inv_state.is_sym ) { return op_pinv::apply_sym (out, A, T(0), uword(0)); } | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ wild_boot.cpp:110:11: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 110 | mat br = arma::inv(xx); | ^ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:759: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_pinv_meat.hpp:311:50: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 311 | if( (tol == T(0)) && (s.n_elem > 0) ) { tol = (std::max)(n_rows, n_cols) * s[0] * std::numeric_limits::epsilon(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:142:23: note: in instantiation of function template specialization 'arma::op_pinv::apply_gen' requested here 142 | return op_pinv::apply_gen(out, A, T(0), uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:49:27: note: in instantiation of function template specialization 'arma::op_inv_gen_full::apply_direct, false>' requested here 49 | return op_inv_gen_full::apply_direct(out, expr, caller_sig, uword(0)); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/op_inv_gen_meat.hpp:31:43: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply_direct>' requested here 31 | const bool status = op_inv_gen_default::apply_direct(out, X.m, "inv()"); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:5309:12: note: in instantiation of function template specialization 'arma::op_inv_gen_default::apply>' requested here 5309 | op_type::apply(static_cast< Mat_noalias& >(*this), X); | ^ wild_boot.cpp:110:11: note: in instantiation of function template specialization 'arma::Mat::Mat, arma::op_inv_gen_default>' requested here 110 | mat br = arma::inv(xx); | ^ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:544:21: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ wild_boot.cpp:111:11: note: in instantiation of function template specialization 'cross_x_y, arma::Mat, arma::Col>' requested here 111 | vec xy = cross_x_y(x, y).as_col(); | ^ In file included from wild_boot.cpp:6: ../inst/include/Rfast2/templates.h:544:34: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~~~ ~~^~~~~~ ../inst/include/Rfast2/templates.h:544:45: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'const int' [-Wshorten-64-to-32] 544 | const int ncl=x.n_cols,nrw=x.n_rows,p=y.n_cols; | ~ ~~^~~~~~ In file included from wild_boot.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:688: /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/auxlib_meat.hpp:5421:23: warning: implicit conversion from 'const unsigned long long' to 'type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 5421 | eT rcond = (std::max)(A.n_rows, A.n_cols) * std::numeric_limits::epsilon(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:139:20: note: in instantiation of function template specialization 'arma::auxlib::solve_approx_svd, arma::Mat>>' requested here 139 | return auxlib::solve_approx_svd(actual_out, A, B_expr.get_ref()); // A is overwritten | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/glue_solve_meat.hpp:69:44: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat>, arma::subview_elem2, arma::Mat>, true>' requested here 69 | const bool status = glue_solve_gen_full::apply( out, X.A, X.B, X.aux_uword ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:6257:14: note: in instantiation of function template specialization 'arma::glue_solve_gen_full::apply, arma::Mat>, arma::subview_elem2, arma::Mat>>' requested here 6257 | glue_type::apply(*this, X); | ^ wild_boot.cpp:152:9: note: in instantiation of function template specialization 'arma::Mat::operator=, arma::Mat>, arma::subview_elem2, arma::Mat>, arma::glue_solve_gen_full>' requested here 152 | beb = arma::solve(xx.submat(currInds, currInds), xy.rows(currInds), solve_opts::fast); | ^ 45 warnings and 3 errors generated. make[2]: *** [wild_boot.o] Error 1 make[2]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘Rfast2’ * removing ‘/Users/ripley/R/packages/tests-devel/Rfast2.Rcheck/Rfast2’