CLAM-Development  1.4.0
Public Member Functions
CLAM::CrossWeightedPoweredSum< s, abs, T > Class Template Reference

Class Function that computes Sum(x(i)^n * y(i)) using std::accumulate and WeightedPower<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

 CrossWeightedPoweredSum ()
operator() (const Array< T > &x, const Array< T > &y, StaticTrue *b=NULL)
 Memoryfull Computation.
operator() (const Array< T > &x, const Array< T > &y, StaticFalse *)
 Memoryless Computation.
- Public Member Functions inherited from CLAM::BaseMemOp
 BaseMemOp ()
void Reset ()
virtual ~BaseMemOp ()

Additional Inherited Members

- Protected Attributes inherited from CLAM::BaseMemOp
bool alreadyComputed

Detailed Description

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

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

Definition at line 339 of file BasicOps.hxx.


Constructor & Destructor Documentation

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

Definition at line 342 of file BasicOps.hxx.


Member Function Documentation

template<int s, bool abs = false, class T = TData>
T CLAM::CrossWeightedPoweredSum< s, abs, T >::operator() ( const Array< T > &  x,
const Array< T > &  y,
StaticTrue b = NULL 
)
inline

Memoryfull Computation.

Definition at line 344 of file BasicOps.hxx.

template<int s, bool abs = false, class T = TData>
T CLAM::CrossWeightedPoweredSum< s, abs, T >::operator() ( const Array< T > &  x,
const Array< T > &  y,
StaticFalse  
)
inline

Memoryless Computation.

Definition at line 351 of file BasicOps.hxx.


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