diff --git a/cwVectOps.h b/cwVectOps.h index ba60842..9798291 100644 --- a/cwVectOps.h +++ b/cwVectOps.h @@ -147,6 +147,26 @@ namespace cw return acc; } + + //================================================================================================================== + // absolute value + // + template + T* abs( T* v, unsigned n ) + { + for(unsigned i=0; i + T0* abs( T0* v0, const T1* v1, unsigned n ) + { + for(unsigned i=0; i