* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘SAMM’ ...
** package ‘SAMM’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-13 (Debian 13.2.0-13) 13.2.0’
using C++11
make[1]: Entering directory '/tmp/RtmpdX5yLy/R.INSTALL1a26024a4e9325/SAMM/src'
g++-13 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
g++-13 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c SAMM.cpp -o SAMM.o
SAMM.cpp: In function ‘arma::vec Mahalanobis(const arma::mat&, const arma::vec&, const arma::mat&, bool)’:
SAMM.cpp:123:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  123 |   for (unsigned int i=0; i < n; i++) {
      |                          ~~^~~
SAMM.cpp: In function ‘arma::mat lincombcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:319:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  319 |   for (unsigned int i = 0; i < k; i++) {
      |                            ~~^~~
SAMM.cpp: In function ‘arma::mat unstrcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:334:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  334 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:335:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  335 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:349:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  349 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat diagcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:365:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  365 |   for (unsigned int i = 1; i < (k+1); ++i) {
      |                            ~~^~~~~~~
SAMM.cpp: In function ‘arma::mat unstrKronKcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:381:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  381 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:382:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  382 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:396:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  396 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat UnstrKronUnstrcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:485:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  485 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:486:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  486 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:500:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  500 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:507:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  507 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp:508:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  508 |     for (unsigned int j = i; j < d2; j++) {
      |                              ~~^~~~
SAMM.cpp:522:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  522 |   for (unsigned int i = 1; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat KKronunstrcov_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:592:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  592 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:593:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  593 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:607:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  607 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::vec loglikfuncmmmkmv(const arma::mat&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const arma::mat&, const arma::mat&)’:
SAMM.cpp:850:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  850 |   for (unsigned int i = 0; i < k; i++) {
      |                            ~~^~~
SAMM.cpp: In function ‘arma::mat UnstrKronIdentSig_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:890:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  890 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:891:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  891 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:904:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  904 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat IdentKronUnstrSig_cpp(const arma::vec&, const arma::mat&)’:
SAMM.cpp:921:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  921 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp:922:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  922 |     for (unsigned int j = i; j < d2; j++) {
      |                              ~~^~~~
SAMM.cpp:935:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  935 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘Rcpp::List simplex_dfunc(arma::vec, const double&, const int&, const arma::mat&, const std::string&, const arma::vec&, const arma::mat&, const arma::mat&, const arma::mat&, int, int, int, const arma::mat&, const arma::mat&, const arma::vec&, const arma::mat&, const arma::vec&, bool, double)’:
SAMM.cpp:1697:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1697 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:1701:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1701 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:1702:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1702 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:1714:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1714 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:1730:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 1730 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:1733:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1733 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:1741:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1741 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:1749:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1749 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:1756:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1756 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:1758:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1758 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:1759:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1759 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:1767:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1767 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:1781:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1781 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:1789:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1789 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:1808:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1808 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:1814:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1814 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:1825:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1825 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:1841:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1841 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:1857:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1857 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:1868:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1868 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:1869:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1869 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:1870:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1870 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:1902:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1902 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:1907:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1907 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:1918:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1918 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:1925:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1925 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List mm(const arma::colvec&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const double&, const double&, const int&, bool, bool)’:
SAMM.cpp:2010:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2010 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2039:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2039 |     for(unsigned int i=0; i<n; i++) {
      |                           ~^~
SAMM.cpp:2052:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 2052 |   }  while (itercountouter<maxiter && powf(powf(1-sqrt(multiplier(0)), 2),.5)>tolparconv);
      |             ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp: In function ‘Rcpp::List simplex_minfuncforcormv(arma::vec, const double&, const int&, const arma::mat&, const std::string&, const arma::mat&, const arma::mat&, const arma::mat&, const arma::vec&, const double&)’:
SAMM.cpp:2166:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2166 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:2170:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2170 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:2171:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2171 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:2183:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2183 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:2193:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 2193 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:2196:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2196 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:2204:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2204 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:2212:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2212 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:2219:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2219 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:2221:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2221 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:2222:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2222 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:2230:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2230 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:2240:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2240 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:2249:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2249 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:2263:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2263 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:2269:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2269 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:2280:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2280 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:2291:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2291 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:2302:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2302 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:2313:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2313 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:2314:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2314 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:2315:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2315 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:2337:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2337 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:2342:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2342 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:2353:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2353 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:2360:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2360 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List dermm(const arma::vec&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const Rcpp::List&, const arma::uvec&, const arma::uvec&, const double&, const double&, const int&, const bool&, const int&, bool)’:
SAMM.cpp:2414:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2414 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2467:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2467 |     for(unsigned int i=0; i<k; i++) {
      |                           ~^~
SAMM.cpp:2510:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2510 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:2519:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2519 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:2527:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2527 |       for(unsigned int irow=0; irow<(k+1); irow++) {
      |                                ~~~~^~~~~~
SAMM.cpp:2530:40: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2530 |           for(unsigned int icol=0; icol<(k+1); icol++) {
      |                                    ~~~~^~~~~~
SAMM.cpp:2560:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2560 |       for(unsigned int i=0; i<(k+1); i++) {
      |                             ~^~~~~~
SAMM.cpp:2575:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2575 |                 if (i<k) {
      |                     ~^~
SAMM.cpp:2588:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2588 |                 if (i<k) {
      |                     ~^~
SAMM.cpp:2615:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 2615 |   }  while (itercountouter<maxiter && sum(abs(logsigmahatvec0-logsigmahatvec))>tolparconv);
      |             ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:2632:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2632 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2663:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2663 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2671:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2671 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2694:29: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2694 |     for (unsigned int i=0; i<k; i++) {
      |                            ~^~
SAMM.cpp: In function ‘Rcpp::List mmmk(const arma::colvec&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const arma::mat&, const double&, const double&, const int&, bool, const double&, bool)’:
SAMM.cpp:2748:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2748 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2766:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2766 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:2773:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2773 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:2779:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2779 |         if (i<k) {
      |             ~^~
SAMM.cpp:2802:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 2802 |   }      while (itercountouter<maxiter && powf(powf(1-sqrt(multiplier(0)), 2),.5)>tolparconv);
      |                 ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:2819:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2819 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2828:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2828 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2836:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2836 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:2859:29: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2859 |     for (unsigned int i=0; i<k; i++) {
      |                            ~^~
SAMM.cpp: In function ‘double minimfunctionouter_reml(arma::vec, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int)’:
SAMM.cpp:3036:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3036 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp: In function ‘Rcpp::List minimfunctionouter_reml2(arma::vec, const arma::vec&, const arma::mat&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, arma::mat, double, int, bool, bool)’:
SAMM.cpp:3075:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3075 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp: In function ‘Rcpp::List simplex_reml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’:
SAMM.cpp:3186:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3186 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:3190:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3190 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:3191:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3191 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:3209:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3209 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:3221:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 3221 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:3224:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3224 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3232:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3232 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3240:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3240 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3247:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3247 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:3249:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3249 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:3250:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3250 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:3258:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3258 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:3279:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3279 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:3287:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3287 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:3312:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3312 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3318:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3318 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3329:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3329 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3350:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3350 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3371:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3371 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3382:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3382 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:3383:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3383 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:3384:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3384 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:3426:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3426 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3431:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3431 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3442:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3442 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:3449:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3449 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List emmremlmk_arma(arma::vec, arma::mat, Rcpp::List, Rcpp::List, double, int, bool, bool)’:
SAMM.cpp:3494:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3494 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:3506:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3506 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:3530:29: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3530 |     for (unsigned int i=0; i<k; i++) {
      |                            ~^~
SAMM.cpp: In function ‘double minimfunctionouter_ml(arma::vec, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int)’:
SAMM.cpp:3661:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3661 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp: In function ‘Rcpp::List minimfunctionouter_ml2(arma::vec, const arma::vec&, const arma::mat&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, arma::mat, double, int, bool, bool)’:
SAMM.cpp:3699:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3699 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp: In function ‘Rcpp::List simplex_ml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’:
SAMM.cpp:3816:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3816 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:3820:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3820 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:3821:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3821 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:3839:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3839 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:3851:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 3851 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:3854:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3854 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3862:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3862 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3870:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3870 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:3877:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3877 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:3879:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3879 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:3880:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3880 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:3888:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3888 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:3909:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3909 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:3917:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3917 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:3942:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3942 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3948:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3948 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3959:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3959 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:3980:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 3980 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4001:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4001 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4012:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4012 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:4013:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4013 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:4014:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4014 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:4056:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4056 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4061:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4061 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4072:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4072 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:4079:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4079 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List emmmlmk_arma(arma::vec, arma::mat, Rcpp::List, Rcpp::List, double, int, bool, bool)’:
SAMM.cpp:4124:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4124 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:4136:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4136 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:4159:29: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4159 |     for (unsigned int i=0; i<k; i++) {
      |                            ~^~
SAMM.cpp: In function ‘arma::vec loglikfuncemmremlmv_arma(const arma::mat&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const arma::mat&)’:
SAMM.cpp:4207:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4207 |   for (unsigned int i = 0; i < k; i++) {
      |                            ~~^~~
SAMM.cpp: In function ‘Rcpp::List emmmv(const arma::mat&, const arma::mat&, const arma::mat&, const arma::mat&, const double&, double, const int&, const bool&, bool)’:
SAMM.cpp:4237:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4237 |   for (unsigned int i = 0; i < n; i++) {
      |                            ~~^~~
SAMM.cpp:4272:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4272 |     for (unsigned int i = 0; i < n; i++) {
      |                              ~~^~~
SAMM.cpp:4283:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4283 |     for (unsigned int i = 0; i < n; i++) {
      |                              ~~^~~
SAMM.cpp:4294:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4294 |     for (unsigned int i = 0; i < n; i++) {
      |                              ~~^~~
SAMM.cpp: In function ‘Rcpp::List mmmv(const arma::mat&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const arma::mat&, const double&, const double&, const int&, bool, bool)’:
SAMM.cpp:4426:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4426 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:4502:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4502 |     for(unsigned int i=0; i<(d); i++) {
      |                           ~^~~~
SAMM.cpp:4524:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 4524 |   } while (itercountouter<maxiter && fabs(sum(diagvec(as<arma::mat>(sigmahatlist(k))-sigma)))/(fabs(1+sum(diagvec(sigma))))>tolparconv/n);
      |            ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:4537:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4537 |   for(unsigned int i=0; i<(k+1); i++) {
      |                         ~^~~~~~
SAMM.cpp:4546:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4546 |   for(unsigned int i=0; i<(k); i++) {
      |                         ~^~~~
SAMM.cpp:4557:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4557 |     for(unsigned int i=0; i<(k); i++) {
      |                           ~^~~~
SAMM.cpp: In function ‘Rcpp::List mmmkmv(const arma::mat&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const arma::mat&, const double&, const double&, const int&, bool, bool)’:
SAMM.cpp:4630:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4630 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:4647:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4647 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:4661:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4661 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:4671:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 4671 |   }  while (itercountouter<maxiter && fabs(sum(diagvec(as<arma::mat>(sigmahatlist(k))-sigma)))/(fabs(1+sum(diagvec(sigma))))>tolparconv/n);
      |             ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:4684:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4684 |   for(unsigned int i=0; i<(k+1); i++) {
      |                         ~^~~~~~
SAMM.cpp:4693:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4693 |   for(unsigned int i=0; i<(k); i++) {
      |                         ~^~~~
SAMM.cpp:4705:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4705 |     for(unsigned int i=0; i<(k); i++) {
      |                           ~^~~~
SAMM.cpp: In function ‘Rcpp::List simplex_minfuncforcormmmkmv(arma::vec, double, int, arma::mat, std::string, arma::mat, arma::mat, arma::mat, arma::vec, double)’:
SAMM.cpp:4813:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4813 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:4817:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4817 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:4818:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4818 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:4830:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4830 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:4840:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 4840 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:4843:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4843 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4851:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4851 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4859:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4859 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4866:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4866 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:4868:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4868 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:4869:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4869 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:4877:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4877 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:4887:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4887 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:4895:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4895 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:4909:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4909 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4915:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4915 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4926:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4926 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4937:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4937 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4948:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4948 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:4959:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4959 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:4960:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4960 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:4961:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4961 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:4983:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4983 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4988:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4988 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:4999:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 4999 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:5006:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5006 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List mmmkcorfuncmvopt(const arma::colvec&, const arma::mat&, const arma::uvec&, const arma::uvec&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const Rcpp::List&, const double&, const double&, const int&, bool, double, bool)’:
SAMM.cpp:5062:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5062 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:5106:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5106 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:5122:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5122 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:5127:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5127 |         if (i<k) {
      |             ~^~
SAMM.cpp:5160:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5160 |                 if (i<k) {
      |                     ~^~
SAMM.cpp:5173:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5173 |                 if (i<k) {
      |                     ~^~
SAMM.cpp:5198:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 5198 |   }  while (itercountouter<maxiter && powf(powf(1-sqrt(multiplier(0)), 2),.5)>tolparconv);
      |             ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:5214:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5214 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:5230:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5230 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:5236:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5236 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:5259:29: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5259 |     for (unsigned int i=0; i<k; i++) {
      |                            ~^~
SAMM.cpp: In function ‘Rcpp::List simplex_minfuncforcormv(arma::vec, double, int, arma::mat, std::string, arma::mat, arma::mat, arma::mat, arma::mat, arma::mat, double)’:
SAMM.cpp:5354:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5354 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:5358:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5358 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:5359:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5359 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:5371:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5371 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:5382:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 5382 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:5385:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5385 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5393:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5393 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5401:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5401 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5408:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5408 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:5410:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5410 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:5411:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5411 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:5419:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5419 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:5429:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5429 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:5437:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5437 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:5451:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5451 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5457:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5457 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5468:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5468 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5479:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5479 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5490:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5490 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5501:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5501 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:5502:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5502 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:5503:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5503 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:5525:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5525 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5530:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5530 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5541:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5541 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:5548:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5548 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List simplex_minfuncforsigmv(arma::vec, double, int, arma::mat, std::string, arma::mat, arma::mat, arma::mat, arma::mat, double)’:
SAMM.cpp:5636:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5636 |   for (i=0; i<npar; i++) {
      |             ~^~~~~
SAMM.cpp:5640:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5640 |   for (i=1; i<=npar; i++) {
      |             ~^~~~~~
SAMM.cpp:5641:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5641 |     for (j=0; j<npar; j++) {
      |               ~^~~~~
SAMM.cpp:5653:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5653 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:5664:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 5664 |   for (itr=1; itr<=maxiter; itr++) {
      |               ~~~^~~~~~~~~
SAMM.cpp:5667:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5667 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5675:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5675 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5683:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5683 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5690:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5690 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:5692:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5692 |       for (m=0; m<=npar; m++) {
      |                 ~^~~~~~
SAMM.cpp:5693:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5693 |         if (m!=vg) {
      |             ~^~~~
SAMM.cpp:5701:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5701 |     for (j=0; j<=npar-1; j++) {
      |               ~^~~~~~~~
SAMM.cpp:5711:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5711 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:5719:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5719 |       for (j=0; j<=npar-1; j++) {
      |                 ~^~~~~~~~
SAMM.cpp:5733:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5733 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5739:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5739 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5750:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5750 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5761:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5761 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5772:20: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5772 |         for (j=0; j<=npar-1; j++) {
      |                   ~^~~~~~~~
SAMM.cpp:5783:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5783 |         for (row=0; row<=npar; row++) {
      |                     ~~~^~~~~~
SAMM.cpp:5784:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5784 |           if (row != vs) {
      |               ~~~~^~~~~
SAMM.cpp:5785:24: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5785 |             for (j=0; j<=npar-1; j++) {
      |                       ~^~~~~~~~
SAMM.cpp:5807:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5807 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5812:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5812 |     for (j=0; j<=npar; j++) {
      |               ~^~~~~~
SAMM.cpp:5823:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5823 |   for (j=0; j<=npar; j++) {
      |             ~^~~~~~
SAMM.cpp:5830:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5830 |   for (j=0; j<npar; j++) {
      |             ~^~~~~
SAMM.cpp: In function ‘Rcpp::List mmmkmvcorfuncsigmafuncmvopt(const arma::mat&, const arma::mat&, const arma::uvec&, const arma::uvec&, const arma::uvec&, const Rcpp::List&, const Rcpp::List&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const double&, const double&, const int&, bool, bool)’:
SAMM.cpp:5911:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5911 |   for(unsigned int i=0; i<k; i++) {
      |                         ~^~
SAMM.cpp:5950:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5950 |   for(unsigned int i=0; i<(k+1); i++) {
      |                         ~^~~~~~
SAMM.cpp:5980:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5980 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:5994:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 5994 |     for(unsigned int i=0; i<(k+1); i++) {
      |                           ~^~~~~~
SAMM.cpp:6012:14: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6012 |         if (i<k) {
      |             ~^~
SAMM.cpp:6041:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6041 |             if (i<k) {
      |                 ~^~
SAMM.cpp:6052:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6052 |             if (i<k) {
      |                 ~^~
SAMM.cpp:6072:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
 6072 |   }      while (itercountouter<maxiter && fabs(sum(diagvec(as<arma::mat>(sigmahatlist(k))-sigma0)))/(fabs(1+sum(diagvec(sigma0))))>tolparconv);
      |                 ~~~~~~~~~~~~~~^~~~~~~~
SAMM.cpp:6087:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6087 |   for(unsigned int i=0; i<(k+1); i++) {
      |                         ~^~~~~~
SAMM.cpp:6097:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6097 |   for(unsigned int i=0; i<(k); i++) {
      |                         ~^~~~
SAMM.cpp:6131:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6131 |     for(unsigned int i=0; i<(k); i++) {
      |                           ~^~~~
SAMM.cpp: In function ‘Rcpp::List SAMM(const arma::mat&, const arma::mat&, const Rcpp::List&, const Rcpp::List&, double, const arma::mat&, const Rcpp::List&, const Rcpp::List&, const arma::uvec&, const arma::uvec&, const arma::uvec&, std::string, const double&, const double&, const int&, bool, bool)’:
SAMM.cpp:6221:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6221 |   for (unsigned int i=0; i<(nKernel+1); i++) {
      |                          ~^~~~~~~~~~~~
SAMM.cpp: In function ‘arma::mat lincombcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:6789:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6789 |   for (unsigned int i = 0; i < k; i++) {
      |                            ~~^~~
SAMM.cpp: In function ‘arma::mat unstrcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:6805:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6805 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:6806:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6806 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:6820:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6820 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat diagcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:6837:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6837 |   for (unsigned int i = 1; i < (k+1); ++i) {
      |                            ~~^~~~~~~
SAMM.cpp: In function ‘arma::mat unstrKronKcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:6854:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6854 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:6855:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6855 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:6869:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6869 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat UnstrKronUnstrcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:6965:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6965 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:6966:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6966 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:6980:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6980 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:6987:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6987 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp:6988:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 6988 |     for (unsigned int j = i; j < d2; j++) {
      |                              ~~^~~~
SAMM.cpp:7002:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7002 |   for (unsigned int i = 1; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat KKronunstrcov_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:7078:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7078 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:7079:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7079 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:7093:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7093 |   for (unsigned int i = 1; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat UnstrKronIdentSig_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:7256:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7256 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp:7257:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7257 |     for (unsigned int j = i; j < d1; j++) {
      |                              ~~^~~~
SAMM.cpp:7270:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7270 |   for (unsigned int i = 0; i < d1; i++) {
      |                            ~~^~~~
SAMM.cpp: In function ‘arma::mat IdentKronUnstrSig_cppforR(const arma::vec&, const arma::mat&)’:
SAMM.cpp:7288:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7288 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
SAMM.cpp:7289:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7289 |     for (unsigned int j = i; j < d2; j++) {
      |                              ~~^~~~
SAMM.cpp:7302:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 7302 |   for (unsigned int i = 0; i < d2; i++) {
      |                            ~~^~~~
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo:405,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from SAMM.cpp:2:
In function ‘void arma::arma_check_bounds(bool, const T1&) [with T1 = char [32]]’,
    inlined from ‘arma::subview_row<eT> arma::Mat<eT>::row(arma::uword) [with eT = double]’ at /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:3028:26,
    inlined from ‘Rcpp::List simplex_reml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’ at SAMM.cpp:3202:18:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/debug.hpp:473:3: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  473 |   if(state)  { arma_stop_bounds_error(arma_str::str_wrapper(x)); }
      |   ^~
SAMM.cpp: In function ‘Rcpp::List simplex_reml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’:
SAMM.cpp:3150:18: note: ‘j’ was declared here
 3150 |   unsigned int i,j,m,row;
      |                  ^
In function ‘void arma::arma_check_bounds(bool, const T1&) [with T1 = char [32]]’,
    inlined from ‘arma::subview_row<eT> arma::Mat<eT>::row(arma::uword) [with eT = double]’ at /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:3028:26,
    inlined from ‘Rcpp::List simplex_ml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’ at SAMM.cpp:3832:18:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/debug.hpp:473:3: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
  473 |   if(state)  { arma_stop_bounds_error(arma_str::str_wrapper(x)); }
      |   ^~
SAMM.cpp: In function ‘Rcpp::List simplex_ml(arma::vec, int, double, const arma::vec&, int, arma::vec, int, int, int, arma::mat&, arma::mat&, double, Rcpp::List&, Rcpp::List&, double, int, bool)’:
SAMM.cpp:3780:18: note: ‘j’ was declared here
 3780 |   unsigned int i,j,m,row;
      |                  ^
g++-13 -std=gnu++11 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o SAMM.so RcppExports.o SAMM.o -llapack -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lRblas -lgfortran -lm -lquadmath -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/tmp/RtmpdX5yLy/R.INSTALL1a26024a4e9325/SAMM/src'
make[1]: Entering directory '/tmp/RtmpdX5yLy/R.INSTALL1a26024a4e9325/SAMM/src'
make[1]: Leaving directory '/tmp/RtmpdX5yLy/R.INSTALL1a26024a4e9325/SAMM/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-SAMM/00new/SAMM/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘SAMM’
    finding HTML links ... done
    SAMM-package                            html  
    SAMM                                    html  
    loglikfuncmmmkmv                        html  
    sigcovfuncs_cppforR                     html  
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (SAMM)