MCPcopy Create free account
hub / github.com/boostorg/histogram / axis_getitem

Function axis_getitem

src/python/axis.cpp:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146template <typename A>
147bp::object axis_getitem(const A& a, int i) {
148 if (i < -(a.uoflow() == 2) || i >= (a.size() + int(a.uoflow() > 0)))
149 throw std::out_of_range("index out of bounds");
150 return bp::make_tuple(a.lower(i), a.lower(i + 1));
151}
152
153template <>
154bp::object axis_getitem<bha::category<>>(const bha::category<>& a, int i) {

Callers

nothing calls this directly

Calls 3

uoflowMethod · 0.45
sizeMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected