ColinTogashi / boost_numpy_eigen

:snake: Python bindings for conversion between numpy and Eigen objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boost_numpy_eigen Build Status

This is a simple example on how to use boost.python to call c++ code from python and convert numpy arrays to Eigen.

To run (assuming you've boost.python already installed):

$ cmake .
$ make hello
$ python hello.py
$ make test_eigen_numpy_mod
$ python test_eigen_numpy.py

Installation

On Ubuntu using apt

Trusty/Xenial/Bionic/Cosmic/Disco

$ sudo apt-apt-repository ppa:personalrobotics/ppa
$ sudo apt update
$ sudo apt install python-boost-numpy-eigen   # Python 2 package
$ sudo apt install python3-boost-numpy-eigen  # Python 3 package

Links

There also is the ndarray project, that aims at providing a multidimensionnal array library similar to numpy.ndarray for C++. Some of the code comes from ndarray.

License

boost_numpy_eigen is licensed under a BSD license. See LICENSE for more information.

Authors

boost_numpy_eigen was created by Julien Rebetez (old repo). It has received contributions from Michael Koval, Jeongseok Lee, Pras Velagapudi, and Gregory Kramida.

About

:snake: Python bindings for conversion between numpy and Eigen objects

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 58.4%Language:CMake 28.1%Language:Python 10.6%Language:Shell 2.1%Language:C 0.8%