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

Function regular_init

src/python/axis.cpp:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <typename Transform>
222bha::regular<Transform>* regular_init(unsigned bin, double lower, double upper,
223 bp::str pylabel, bool with_uoflow) {
224 const auto uo = with_uoflow ? bha::uoflow_type::on : bha::uoflow_type::off;
225 return new bha::regular<Transform>(
226 bin, lower, upper,
227 {bp::extract<const char*>(pylabel)(), static_cast<std::size_t>(bp::len(pylabel))},
228 uo);
229}
230
231bha::regular<bha::transform::pow>* regular_pow_init(unsigned bin, double lower,
232 double upper, double power,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected