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

Class Function that computes Sum(x(i)^n) using std::accumulate and Power<T,s> BinaryOp It also has associated memory so operation is not performed more than necessary. More...

#include <BasicOps.hxx>

List of all members.

Public Member Functions

 PoweredSum ()
operator() (const Array< T > &a, StaticTrue *useMemory=NULL)
operator() (const Array< T > &a, StaticFalse *)

Detailed Description

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

Class Function that computes Sum(x(i)^n) using std::accumulate and Power<T,s> BinaryOp It also has associated memory so operation is not performed more than necessary.

Definition at line 220 of file BasicOps.hxx.


Constructor & Destructor Documentation

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

Definition at line 223 of file BasicOps.hxx.


Member Function Documentation

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

Definition at line 230 of file BasicOps.hxx.

template<int s, bool abs = false, class T = TData>
T CLAM::PoweredSum< s, abs, T >::operator() ( const Array< T > &  a,
StaticTrue useMemory = NULL 
) [inline]

Definition at line 224 of file BasicOps.hxx.


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