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)]]
|
| //
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);