I was wondering if there’s a method in Rcpp, c++ or to duplicate or repeat each row of a given matrix n times?
For example, if I have a 2 x 2 matrix...: