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

Function histogram_axis

src/python/histogram.cpp:140–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138};
139
140bp::object histogram_axis(const pyhistogram& self, int i) {
141 if (i < 0) i += self.dim();
142 if (i < 0 || i >= int(self.dim())) throw std::out_of_range("axis index out of range");
143 return boost::apply_visitor(axis_visitor(), self.axis(i));
144}
145
146bp::object histogram_init(bp::tuple args, bp::dict kwargs) {
147

Callers

nothing calls this directly

Calls 3

axis_visitorClass · 0.85
axisMethod · 0.80
dimMethod · 0.45

Tested by

no test coverage detected