Skip to content

Commit bb1de5c

Browse files
committed
feat: subtraction for Histograms
1 parent 521c371 commit bb1de5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/bh_python/register_histogram.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ auto register_histogram(py::module& m, const char* name, const char* desc) {
9797
def_optionally(hist,
9898
bh::detail::has_operator_rmul<histogram_t, histogram_t>{},
9999
py::self *= py::self);
100+
def_optionally(hist,
101+
bh::detail::has_operator_rsub<histogram_t, histogram_t>{},
102+
py::self -= py::self);
100103
#ifdef __clang__
101104
#pragma GCC diagnostic pop
102105
#endif

0 commit comments

Comments
 (0)