[Rcpp-devel] RcppArmadillo-based code not finding Lapack routines

Davor Cubranic cubranic at stat.ubc.ca
Mon Sep 27 21:43:15 CEST 2010


After I upgraded to RcppArmadillo 0.2.6, running existing code that uses it throws the following error:

run-time error: eig_sym(): need LAPACK

Any idea what might be causing this? I'm trying to create a minimal code needed to reproduce the problem, and strangely enough, this works fine:

eig <- cxxfunction( signature() , '
      arma::mat x = arma::randu(4, 4);
      arma::mat X = arma::trans(x)*x;
      arma::vec v = arma::eig_sym(X);
      return List::create( 
        _["X"] = X, 
        _["eigval"] = v
    ); 
    ', plugin = "RcppArmadillo" )

Davor


More information about the Rcpp-devel mailing list