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>
Public Member Functions | |
PoweredSum () | |
T | operator() (const Array< T > &a, StaticTrue *useMemory=NULL) |
T | operator() (const Array< T > &a, StaticFalse *) |
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.
CLAM::PoweredSum< s, abs, T >::PoweredSum | ( | ) | [inline] |
Definition at line 223 of file BasicOps.hxx.
T CLAM::PoweredSum< s, abs, T >::operator() | ( | const Array< T > & | a, | |
StaticFalse * | ||||
) | [inline] |
Definition at line 230 of file BasicOps.hxx.
T CLAM::PoweredSum< s, abs, T >::operator() | ( | const Array< T > & | a, | |
StaticTrue * | useMemory = NULL | |||
) | [inline] |
Definition at line 224 of file BasicOps.hxx.