mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
init from private repository
This commit is contained in:
22
src/python/module.cpp
Normal file
22
src/python/module.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <boost/python/module.hpp>
|
||||
#ifdef USE_NUMPY
|
||||
# define PY_ARRAY_UNIQUE_SYMBOL boost_histogram_ARRAY_API
|
||||
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||
# include <numpy/arrayobject.h>
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
namespace histogram {
|
||||
void register_histogram_base();
|
||||
void register_nhistogram();
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_PYTHON_MODULE(histogram)
|
||||
{
|
||||
#ifdef USE_NUMPY
|
||||
import_array();
|
||||
#endif
|
||||
boost::histogram::register_histogram_base();
|
||||
boost::histogram::register_nhistogram();
|
||||
}
|
||||
Reference in New Issue
Block a user