[R] eigenvalues of complex matrices

2009-12-01 Thread David Scherrer
Dear all, I want to compute the eigenvalues of a complex matrix for some statistics. Comparing it to its matlab/octave sibling, I don't get the same eigenvalues in R computing it from the exact same matrix. In R, I used eigen() and arpack() that give different eigenvalues. In matlab/octave I used

[R] linking to external C++ library

2009-11-19 Thread David Scherrer
Dear all, I don't bring my head around how to link an external C++ library with some R code using R CMD SHLIB and/or R CMD INSTALL . So does anybody can tell me how I could easily link an external library that is e.g. in /usr/local/lib/mMyLibrary ? Many thanks, David [[alternative HTML