Skip to content
Prev 2454 / 10988 Next

[Rcpp-devel] RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge?

On Jun 6, 2011 4:17 AM, "baptiste auguie" <baptiste.auguie at googlemail.com>
wrote:
'/tmp/RtmpbztUMm/Rinst1829c04c/cda/libs/cda.so':
zgetri_
http://www.mail-archive.com/rcpp-devel at lists.r-forge.r-project.org/msg00678.html
that
by
chances
clear
Doug
Armadillo
cmake)
So no
building
pp and I
RcppArmadillo more
That is
was built
system
may be in
trying your
time to
enough to
some of
feasible.
CRAN?
it is a
user
that
which is
otherwise
all I
dynamic
One important point has been missed in this discussion, which is that the
particular Lapack subroutine that is not found in the subset of Lapack
shipped with R is for general, complex-valued matrices (just google the name
zgetri).  The way that Armadillo is structured it is either all-in or
all-out with respect to complex-valued matrices  If you allow for complex
matrices then you must have all the supporting subroutines for whatever you
are calling.  If you call inv() you need to allow for all the [sdcz]getri
routines to be available.

So one possibility is to check the Armadillo sources to see if you can
suppress the use of complex-valued matrices when compiling your package.  A
quick glance indicates that this might now be easy.

Otherwise, remember the first rule of numerical linear algebra which is, "If
your algorithm involves computing the inverse of a matrix you should rethink
the algorithm because there is a better way of doing it".  So why do you
need inv()?  If the answer is to solve a linear system of equations then you
use solve(), you do not use inv().  If, for some truly unusual reason you
actually need the inverse (and, remember in 99.99% of the cases where people
think they need the inverse, they don't) then you use a combination of
solve() and eye().
using
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110607/b7797d8e/attachment-0001.htm>

Thread (16 messages)

Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 3 Dirk Eddelbuettel RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 3 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 4 Dirk Eddelbuettel RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 4 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 5 Dirk Eddelbuettel RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 5 Douglas Bates RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Douglas Bates RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Douglas Bates RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Douglas Bates RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 7 Baptiste Auguie RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 22 Dirk Eddelbuettel RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge? Jun 22