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. More...
#include <BasicOps.hxx>
Public Member Functions | |
WeightedPoweredSum () | |
T | operator() (const Array< T > &a, StaticTrue *b=NULL) |
Memoryfull Computation. | |
T | operator() (const Array< T > &a, StaticFalse *) |
Memoryless Computation. |
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.
CLAM::WeightedPoweredSum< s, abs, T >::WeightedPoweredSum | ( | ) | [inline] |
Definition at line 317 of file BasicOps.hxx.
T CLAM::WeightedPoweredSum< s, abs, T >::operator() | ( | const Array< T > & | a, | |
StaticFalse * | ||||
) | [inline] |
Memoryless Computation.
Definition at line 326 of file BasicOps.hxx.
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.