eigen.cxx
v5.2026.1
Published
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms; Benoit Jacob (2007).
Maintainers
Readme
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
For more information go to http://eigen.tuxfamily.org/ or https://libeigen.gitlab.io.
For pull request, bug reports, and feature requests, go to https://gitlab.com/libeigen/eigen.
Installation
Run:
$ npm i eigen.cxxAnd then include Eigen.h as follows:
// main.cxx
#include <Eigen.h> // or, Eigen/Eigen
int main() { /* ... */ }Finally, compile while adding the path node_modules/eigen.cxx to your compiler's include paths.
$ clang++ -I./node_modules/eigen.cxx main.cxx # or, use g++
$ g++ -I./node_modules/eigen.cxx main.cxxYou may also use a simpler approach with the cpoach tool, which automatically adds the necessary include paths of all the installed dependencies for your project.
$ cpoach clang++ main.cxx # or, use g++
$ cpoach g++ main.cxx
