Prev | Next | eigen |
cppad_eigen.hpp | Enable Use of Eigen Linear Algebra Package with CppAD |
eigen_array.cpp | Using Eigen Arrays: Example and Test |
eigen_det.cpp | Using Eigen To Compute Determinant: Example and Test |
sparse2eigen.cpp | Converting CppAD Sparse Matrix to Eigen Format: Example and Test |
atomic_two_eigen_cholesky.hpp | atomic_two Eigen Cholesky Factorization Class |
atomic_two_eigen_mat_inv.hpp | atomic_two Eigen Matrix Inversion Class |
atomic_two_eigen_mat_mul.hpp | atomic_two Eigen Matrix Multiply Class |
include_eigen=true
on the
cmake
command line.
The value of
PKG_CONFIG_PATH
must be such that the command
pkg-config eigen3 --path --print-errors
finds the location of the file eigen3.pc
.
-D eigen_prefix=eigen_prefix
on the cmake command line.
In this case, the sub-directory Eigen
must exist in a directory
eigen_prefix/includedir
where
include_dir
is one of the directories in the
cmake_install_includedirs
list
of directories.
include_eigencmakeinclude_eigen
on the cmake command line,
you will be able to run the Eigen examples list above
by executing the following commands starting in the
distribution directory
:
cd build/example
make check_example
If you do this,
you will see an indication that the examples
eigen_array
and eigen_det
have passed their correctness check.
eigen_prefix
you can choose
-D cppad_testvector=eigen
on the cmake command
line.
This we set the CppAD testvector
to use Eigen vectors.
build/prefix
.