]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/python/numpy.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / python / numpy.hpp
1 // Copyright Jim Bosch 2010-2012.
2 // Copyright Stefan Seefeld 2016.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifndef boost_python_numpy_hpp_
8 #define boost_python_numpy_hpp_
9
10 #include <boost/python/numpy/dtype.hpp>
11 #include <boost/python/numpy/ndarray.hpp>
12 #include <boost/python/numpy/scalars.hpp>
13 #include <boost/python/numpy/matrix.hpp>
14 #include <boost/python/numpy/ufunc.hpp>
15 #include <boost/python/numpy/invoke_matching.hpp>
16 #include <boost/python/numpy/config.hpp>
17
18 namespace boost { namespace python { namespace numpy {
19
20 /**
21 * @brief Initialize the Numpy C-API
22 *
23 * This must be called before using anything in boost.numpy;
24 * It should probably be the first line inside BOOST_PYTHON_MODULE.
25 *
26 * @internal This just calls the Numpy C-API functions "import_array()"
27 * and "import_ufunc()", and then calls
28 * dtype::register_scalar_converters().
29 */
30 BOOST_NUMPY_DECL void initialize(bool register_scalar_converters=true);
31
32 }}} // namespace boost::python::numpy
33
34 #endif