Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template operator*

boost::histogram::operator* — Multiply all cells of the histogram by a number and return a new histogram.

Synopsis

// In header: <boost/histogram/histogram.hpp>


template<typename A, typename S> 
  auto operator*(double x, const histogram< A, S > & h);

Description

If the original histogram has integer cells, the result has double cells.


PrevUpHomeNext