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 project

boost::histogram::algorithm::project — Returns a lower-dimensional histogram, summing over removed axes.

Synopsis

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


template<typename A, typename S, unsigned N, typename... Ns> 
  auto project(const histogram< A, S > & h, 
               std::integral_constant< unsigned, N >, Ns...);

Description

Arguments are the source histogram and compile-time numbers, the remaining indices of the axes. Returns a new histogram which only contains the subset of axes. The source histogram is summed over the removed axes.


PrevUpHomeNext