Stack imbalance with RcppParallel

后端 未结 1 1269
孤独总比滥情好
孤独总比滥情好 2020-12-11 08:28

I wrote the following code to train myself to use RcppParallel. It is just a toy example.

// [[Rcpp::depends(RcppParallel)]]
#include 
#include         


        
相关标签:
1条回答
  • 2020-12-11 09:26

    Look more closely at an example such as the parallel distance from the Rcpp Gallery.

    It does not use NumericMatrix but rather RMatrix<double>. I would do the same here, and have generally advocated not to rely on contact with R types while running parallel segments.

    0 讨论(0)
提交回复
热议问题