Rcpp (Eigen), duplicate or repeat rows

后端 未结 0 751
粉色の甜心
粉色の甜心 2020-12-18 17:28

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...:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题