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 a snapshot of the develop branch, built from commit 55d6c44345.
PrevUpHomeNext

Struct pow

boost::histogram::axis::transform::pow — Pow transform for equidistant bins in pow-space.

Synopsis

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


struct pow {

  // public member functions
  explicit pow(double);
  pow() = default;
  template<typename T> auto forward(T) const;
  template<typename T> auto inverse(T) const;
  bool operator==(const pow &) const noexcept;
  template<typename Archive> void serialize(Archive &, unsigned);

  // public data members
  double power;  // power index 
};

Description

pow public member functions

  1. explicit pow(double p);
    Make transform with index p.
  2. pow() = default;
  3. template<typename T> auto forward(T x) const;
    Returns pow(x, power) of external value x.
  4. template<typename T> auto inverse(T x) const;
    Returns pow(x, 1/power) of external value x.
  5. bool operator==(const pow & o) const noexcept;
  6. template<typename Archive> void serialize(Archive & ar, unsigned);

PrevUpHomeNext