CLAM::WeightedPower< s, abs, T > Class Template Reference

Binary Operator for use with std::accumulate, for computing Sum(i*x(i)^n). More...

#include <BasicOps.hxx>

List of all members.

Public Member Functions

 WeightedPower ()
operator() (const T &orig, const T &num)
operator() (const T &orig, const T &num, StaticFalse *)
operator() (const T &orig, const T &num, StaticTrue *)

Protected Attributes

TIndex i
Pow< s > mP

Detailed Description

template<int s, bool abs = false, class T = TData>
class CLAM::WeightedPower< s, abs, T >

Binary Operator for use with std::accumulate, for computing Sum(i*x(i)^n).

Definition at line 118 of file BasicOps.hxx.


Constructor & Destructor Documentation

template<int s, bool abs = false, class T = TData>
CLAM::WeightedPower< s, abs, T >::WeightedPower (  )  [inline]

Definition at line 121 of file BasicOps.hxx.


Member Function Documentation

template<int s, bool abs = false, class T = TData>
T CLAM::WeightedPower< s, abs, T >::operator() ( const T &  orig,
const T &  num,
StaticTrue  
) [inline]

Definition at line 130 of file BasicOps.hxx.

template<int s, bool abs = false, class T = TData>
T CLAM::WeightedPower< s, abs, T >::operator() ( const T &  orig,
const T &  num,
StaticFalse  
) [inline]

Definition at line 126 of file BasicOps.hxx.

template<int s, bool abs = false, class T = TData>
T CLAM::WeightedPower< s, abs, T >::operator() ( const T &  orig,
const T &  num 
) [inline]

Definition at line 122 of file BasicOps.hxx.


Member Data Documentation

template<int s, bool abs = false, class T = TData>
TIndex CLAM::WeightedPower< s, abs, T >::i [protected]

Definition at line 135 of file BasicOps.hxx.

Referenced by CLAM::WeightedPower< 1, abs, T >::operator()().

template<int s, bool abs = false, class T = TData>
Pow<s> CLAM::WeightedPower< s, abs, T >::mP [protected]

Definition at line 136 of file BasicOps.hxx.

Referenced by CLAM::WeightedPower< 1, abs, T >::operator()().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3