Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/python/numpy.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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_hpp_
0008 #define boost_python_numpy_hpp_
0009 
0010 #include <boost/python/numpy/dtype.hpp>
0011 #include <boost/python/numpy/ndarray.hpp>
0012 #include <boost/python/numpy/scalars.hpp>
0013 #include <boost/python/numpy/matrix.hpp>
0014 #include <boost/python/numpy/ufunc.hpp>
0015 #include <boost/python/numpy/invoke_matching.hpp>
0016 #include <boost/python/numpy/config.hpp>
0017 
0018 namespace boost { namespace python { namespace numpy {
0019 
0020 /**
0021  *  @brief Initialize the Numpy C-API
0022  *
0023  *  This must be called before using anything in boost.numpy;
0024  *  It should probably be the first line inside BOOST_PYTHON_MODULE.
0025  *
0026  *  @internal This just calls the Numpy C-API functions "import_array()"
0027  *            and "import_ufunc()", and then calls
0028  *            dtype::register_scalar_converters().
0029  */
0030 BOOST_NUMPY_DECL void initialize(bool register_scalar_converters=true);
0031 
0032 }}} // namespace boost::python::numpy
0033 
0034 #endif