sample in Rcpp Armadillo
问题 I am currently struggeling with the sample() command provided in RcppArmadillo . When I try to run the code below I get the error no matching function for call to sample and I already add the extra Rcpp:: namespace in front since this worked out well in another post. I also tried several other container classes, but I am always stuck with this error. Below is some code, which produces the error. Any help would be greatly appreciated :) #include <RcppArmadillo.h> // [[Rcpp::depends