File indexing completed on 2025-02-22 10:26:14
0001
0002
0003
0004
0005
0006
0007 #ifndef boost_python_numpy_internal_hpp_
0008 #define boost_python_numpy_internal_hpp_
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/python.hpp>
0018 #include <boost/python/numpy/config.hpp>
0019 #ifdef BOOST_PYTHON_NUMPY_INTERNAL
0020 #define NO_IMPORT_ARRAY
0021 #define NO_IMPORT_UFUNC
0022 #else
0023 #ifndef BOOST_PYTHON_NUMPY_INTERNAL_MAIN
0024 ERROR_internal_hpp_is_for_internal_use_only
0025 #endif
0026 #endif
0027 #define PY_ARRAY_UNIQUE_SYMBOL BOOST_NUMPY_ARRAY_API
0028 #define PY_UFUNC_UNIQUE_SYMBOL BOOST_UFUNC_ARRAY_API
0029 #include <numpy/arrayobject.h>
0030 #include <numpy/ufuncobject.h>
0031 #include <boost/python/numpy.hpp>
0032
0033 #define NUMPY_OBJECT_MANAGER_TRAITS_IMPL(pytype,manager) \
0034 PyTypeObject const * object_manager_traits<manager>::get_pytype() { return &pytype; }
0035
0036 #endif