问题
Suppose, I have a Rcpp::NumericMatrix A. I want to make an identical copy (not pointer copy) of A into another Rcpp::NumericMatrix B. Is this the correct way of doing this job?
Rcpp::NumericMatrix B(Rcpp::clone(A));
Also what is the difference between the above line and the following:
Rcpp::NumericMatrix B(A);
来源:https://stackoverflow.com/questions/31015321/rcpp-how-to-ensure-deep-copy-of-a-numericmatrix