Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-23 Thread Dirk Eddelbuettel
On 23 February 2024 at 09:35, Robin Liu wrote: | Hi all, | | Here is an R script that uses Armadillo to decompose a large matrix and print | the first 10 eigenvalues. | | library(RcppArmadillo) | library(Rcpp) | | src <- | r"(#include | | // [[Rcpp::depends(RcppArmadillo)]] | | //

[Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-23 Thread Robin Liu
Hi all, Here is an R script that uses Armadillo to decompose a large matrix and print the first 10 eigenvalues. library(RcppArmadillo) library(Rcpp) src <- r"(#include // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] arma::vec getEigenValues(arma::mat M) { return arma::eig_sym(M);