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

#include <BasicOps.hxx>

Inheritance diagram for CLAM::WeightedPoweredSum< s, abs, T >:

CLAM::BaseMemOp

List of all members.


Detailed Description

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

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

Definition at line 314 of file BasicOps.hxx.


Public Member Functions

 WeightedPoweredSum ()
operator() (const Array< T > &a, StaticTrue *b=NULL)
 Memoryfull Computation.
operator() (const Array< T > &a, StaticFalse *)
 Memoryless Computation.

Constructor & Destructor Documentation

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

Definition at line 317 of file BasicOps.hxx.


Member Function Documentation

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

Memoryfull Computation.

Definition at line 319 of file BasicOps.hxx.

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

Memoryless Computation.

Definition at line 326 of file BasicOps.hxx.


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

Generated on Tue Aug 12 22:33:50 2008 for CLAM by  doxygen 1.5.5