See More

#include using namespace Rcpp; // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] arma::mat rowMax(const arma::mat& X) { arma::mat A = arma::zeros<:mat>(X.n_rows,1); for (unsigned int i=0; i(X.n_rows,1); arma::uword row; arma::uword col; for (unsigned int i=0; i(X.n_rows,1); for (unsigned int i=0; i(n,c); for (int i=0; i