Go to the documentation of this file.00001
00002
00003
00004
00005 #ifndef BOOST_NUMPY_INTERNAL_HPP_INCLUDED
00006 #define BOOST_NUMPY_INTERNAL_HPP_INCLUDED
00007
00015 #include <boost/python.hpp>
00016 #ifdef BOOST_NUMPY_INTERNAL
00017 #define NO_IMPORT_ARRAY
00018 #define NO_IMPORT_UFUNC
00019 #else
00020 #ifndef BOOST_NUMPY_INTERNAL_MAIN
00021 ERROR_internal_hpp_is_for_internal_use_only
00022 #endif
00023 #endif
00024 #define PY_ARRAY_UNIQUE_SYMBOL BOOST_NUMPY_ARRAY_API
00025 #define PY_UFUNC_UNIQUE_SYMBOL BOOST_UFUNC_ARRAY_API
00026 #include <numpy/arrayobject.h>
00027 #include <numpy/ufuncobject.h>
00028 #include <boost/numpy.hpp>
00029
00030 #define NUMPY_OBJECT_MANAGER_TRAITS_IMPL(pytype,manager) \
00031 PyTypeObject const * object_manager_traits<manager>::get_pytype() { return &pytype; }
00032
00033 #endif // !BOOST_NUMPY_INTERNAL_HPP_INCLUDED