Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

personalrobotics/boost_numpy_eigen_legacy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

TODO

  • The from python converts do some data copy. This could hurt for big matrices

Packages

 
 
 

Languages

  • C++ 48.6%
  • CMake 38.5%
  • Python 8.8%
  • Shell 3.2%
  • C 0.9%