IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Namespaces | Functions
sum.h File Reference

sum function; returns the sum of the elements of a pack More...

#include <IPSDKUtil/IPSDKUtilExports.h>
#include <IPSDKUtil/InstructionSet/Reduction/detail/SumPack.h>
#include <IPSDKUtil/InstructionSet/UpperType.h>
#include <IPSDKUtil/Tools/ForceInline.h>

Go to the source code of this file.

Namespaces

 ipsdk
 Main namespace for IPSDK library.
 
 ipsdk::simd
 Namespace agregating IPSDK SIMD routines and classes.
 

Functions

template<eInstructionSet::domain instructionSet, class PackT >
IPSDK_FORCEINLINE UpperType< typename PackT::DataType >::Type ipsdk::simd::sum (const PackT &in)
 returns the sum of the elements of a pack More...
 

Detailed Description

sum function; returns the sum of the elements of a pack

Author
H. Delestre
Date
2014/02/24

given one pack P, with P = {p1, ..., pn} sum(P) returns p1 + ... + pn