aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/UsingBlasLapackBackends.dox
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-07-27 15:07:35 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-07-27 15:07:35 +0200
commit188590db8269e3fb422bca194ea1ec6c364d94c2 (patch)
tree92df9e4b4b123608de7aa42d7328c2bc9c5fbea8 /doc/UsingBlasLapackBackends.dox
parent8972323c088350200fd9e799238081aa37c2342a (diff)
Add instructions for LAPACKE+Accelerate
Diffstat (limited to 'doc/UsingBlasLapackBackends.dox')
-rw-r--r--doc/UsingBlasLapackBackends.dox7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/UsingBlasLapackBackends.dox b/doc/UsingBlasLapackBackends.dox
index a3ffdda57..caa597122 100644
--- a/doc/UsingBlasLapackBackends.dox
+++ b/doc/UsingBlasLapackBackends.dox
@@ -43,6 +43,13 @@ Do not miss this \link TopicUsingIntelMKL page \endlink for further discussions
In order to use an external BLAS and/or LAPACK library, you must link you own application to the respective libraries and their dependencies.
For LAPACK, you must also link to the standard <a href="http://www.netlib.org/lapack/lapacke.html">Lapacke</a> library, which is used as a convenient think layer between %Eigen's C++ code and LAPACK F77 interface. Then you must activate their usage by defining one or multiple of the following macros (\b before including any %Eigen's header):
+\note For Mac users, in order to use the lapack version shipped with the Accelerate framework, you also need the lapacke library.
+Using <a href="https://www.macports.org/">MacPorts</a>, this is as easy as:
+\code
+sudo port install lapack
+\endcode
+and then use the following link flags: \c -framework \c Accelerate \c /opt/local/lib/lapack/liblapacke.dylib
+
<table class="manual">
<tr><td>\c EIGEN_USE_BLAS </td><td>Enables the use of external BLAS level 2 and 3 routines (compatible with any F77 BLAS interface)</td></tr>
<tr class="alt"><td>\c EIGEN_USE_LAPACKE </td><td>Enables the use of external Lapack routines via the <a href="http://www.netlib.org/lapack/lapacke.html">Lapacke</a> C interface to Lapack (compatible with any F77 LAPACK interface)</td></tr>