Matrices / Vectors in C ++ with the independent R math library?

All,

I played with the standalone R math library in C ++. I really like being able to generate random numbers and use distribution functions that are convenient for me with R. The question is: is it possible to use operations with matrices (multiplication, transpose, inverse, Chol, etc.) Which are available in R in a standalone library? I do not see them in Rmath.h.

If matrix operations are available for use in stand-alone C ++ code, it seems that the R API is becoming the perfect open source computing engine. Do people use it that way?

Thanks so much for the tips and suggestions!

+3
source share
2 answers

, , , , LAPACK BLAS Fortran, R, , R .

++ R, Rcpp Dirk Eddelbuettel Romain Francois. RcppArmadillo Armadillo ++, .

, , ++, R, ++, R. Rcpp () . Armadillo , .

+3

, . R ++, R API ++.

, R, R API, C- ++.

( ) -: , , - Armadillo . ( ) BLAS LAPACK --- . [ , , ; fastLm() RcppArmadillo. ]

, Rcpp :

  • R, ++, , Rcpp

  • R ++, RInside, Rcpp

rcpp-devel .

+3

Source: https://habr.com/ru/post/1786420/


All Articles