[Rcpp-devel] How to use R function mvrnorm in c++?

Victor lijilong1979 at 163.com
Mon Oct 8 23:23:36 CEST 2012


Dear all,

I want to use R function mvrnorm (package MASS) in my c++ scripts. Below is the R code:


    library(MASS)

    x<-matrix(c(1.5,0,0,0,1.5,0,0,0,1.5),3,3)

    mvrnorm(1,c(15,33,26),x)


I will appreciate you very much if you give me some help and advice! Thank you so much!

Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121009/1ffc513f/attachment.html>


More information about the Rcpp-devel mailing list