ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::util::geometric_averaging Struct Reference

A functor which computes the geometric average of all entries in a container. More...

#include <misc.hpp>

Public Member Functions

template<typename ContainerType >
double operator() (ContainerType const &cont) const
 

Detailed Description

A functor which computes the geometric average of all entries in a container.

The container is required to provide STL-compatible forward-iterators and a member function size() returning the number of elements. Note that all entries need to be non-negative for even container sizes.

Definition at line 100 of file misc.hpp.

Member Function Documentation

◆ operator()()

template<typename ContainerType >
double viennashe::util::geometric_averaging::operator() ( ContainerType const &  cont) const
inline

Definition at line 103 of file misc.hpp.


The documentation for this struct was generated from the following file: