danm0nster / node-napi-example-eigenvalue

Example of node.js app calling native C++ code doing linear algebra with Eigen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-napi-example-eigenvalue

Example of node.js app calling native C++ code doing linear algebra with Eigen

You need a recent version of node.js supporting the N-API interface for native modules. You also need node-gyp and Eigen installed.

To install, build and run the code you should roughly do the following:

  1. git clone https://github.com/danm0nster/node-napi-example-eigenvalue.git napi-example
  2. cd napi-example
  3. npm install
  4. node test/test_binding.js

Installing required software

  1. Node.js can be downloaded from the official site
  2. Install the node.js native add-on build tool node-gyp with npm: $ npm install -g node-gyp
  3. Install Eigen from source or by using package, e.g.
    • Mac OS (using brew): $ brew install eigen
    • Linux (Debian | Ubuntu): $ apt-get install libeigen3-dev

About

Example of node.js app calling native C++ code doing linear algebra with Eigen

License:ISC License


Languages

Language:C++ 61.2%Language:JavaScript 27.9%Language:Python 10.9%