-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmodule.cpp
More file actions
33 lines (25 loc) · 1.02 KB
/
module.cpp
File metadata and controls
33 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2018-2019 Henry Schreiner and Hans Dembinski
//
// Distributed under the 3-Clause BSD License. See accompanying
// file LICENSE or https://github.com/scikit-hep/boost-histogram for details.
#include <bh_python/pybind11.hpp>
void register_algorithms(py::module&);
void register_storages(py::module&);
void register_axes(py::module&);
void register_histograms(py::module&);
void register_accumulators(py::module&);
void register_transforms(py::module&);
PYBIND11_MODULE(_core, m, py::mod_gil_not_used()) {
py::module storage = m.def_submodule("storage");
register_storages(storage);
py::module ax = m.def_submodule("axis");
register_axes(ax);
py::module trans = ax.def_submodule("transform");
register_transforms(trans);
py::module hist = m.def_submodule("hist");
register_histograms(hist);
py::module accumulators = m.def_submodule("accumulators");
register_accumulators(accumulators);
py::module algorithm = m.def_submodule("algorithm");
register_algorithms(algorithm);
}