gtsam/python/handwritten
Ellon Mendes 05f6237f71 Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp
This fixes the segmentation fault when converting numpy and Eigen.

The reason is that NumpyEigenConverter.hpp includes numpy/arrayobject.h, and for
the numpy's C-API to work in multiple files we need to define NO_IMPORT_ARRAY
before including numpy/arrayobject.h in all the source files but the one that
defines the module initialization (exportgtsam.cpp in out case), as explained
here:
http://docs.scipy.org/doc/numpy/reference/c-api.array.html#importing-the-api

Note that PY_ARRAY_UNIQUE_SYMBOL, also needed to work multifile, is already
defined on NumpyEigenConverter.hpp.
2015-12-02 13:35:15 +01:00
..
geometry Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
linear Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
nonlinear Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
slam Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
utils Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
CMakeLists.txt Revert python module to use old handwritten files 2015-12-02 13:35:15 +01:00
exportgtsam.cpp Define NO_IMPORT_ARRAY in all cpp files before including NumpyEigenConverter.hpp 2015-12-02 13:35:15 +01:00
geometry_python.cpp Register convertion between numpy and eigen in a separated submodule 2015-12-02 13:35:14 +01:00
noiseModel_python.cpp Add overloads for named constructors on noiseModel module 2015-12-02 13:35:15 +01:00
nonlinear_python.cpp Wrap basic functions of NonlinearFactorGraph and ISAM2 2015-12-02 13:35:15 +01:00
registernumpyeigen_python.cpp Register convertion between numpy and eigen in a separated submodule 2015-12-02 13:35:14 +01:00
slam_python.cpp Wrap prior factors 2015-12-02 13:35:15 +01:00