Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:26:14

0001 // Copyright Jim Bosch 2010-2012.
0002 // Copyright Stefan Seefeld 2016.
0003 // Distributed under the Boost Software License, Version 1.0.
0004 // (See accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 #ifndef boost_python_numpy_internal_hpp_
0008 #define boost_python_numpy_internal_hpp_
0009 
0010 /**
0011  *  @file boost/python/numpy/internal.hpp
0012  *  @brief Internal header file to include the Numpy C-API headers.
0013  *
0014  *  This should only be included by source files in the boost.numpy library itself.
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