Yeppp!
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Functions

enum YepStatus yepCore_SumAbs_V32f_S32f (const Yep32f *restrict v, Yep32f *restrict sumAbs, YepSize length)
 Computes the sum of absolute values of single precision (32-bit) floating-point array elements. More...
 
enum YepStatus yepCore_SumAbs_V64f_S64f (const Yep64f *restrict v, Yep64f *restrict sumAbs, YepSize length)
 Computes the sum of absolute values of double precision (64-bit) floating-point array elements. More...
 

Detailed Description

Function Documentation

enum YepStatus yepCore_SumAbs_V32f_S32f ( const Yep32f *restrict  v,
Yep32f *restrict  sumAbs,
YepSize  length 
)

Computes the sum of absolute values of single precision (32-bit) floating-point array elements.

Parameters
[in]vPointer to the array of elements whose absolute values will be summed up.
[out]sumAbsPointer to the variable where the sum of absolute values will be stored.
[in]lengthLength of the array specified by v. If length is zero, the computed sum will be 0.
Return values
YepStatusOkThe computation finished successfully.
YepStatusNullPointerv or sumAbs argument is null.
YepStatusMisalignedPointerv or sumAbs argument is not naturally aligned.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2, SSE3
x86-64Intel Sandy BridgeAVX
x86-64AMD BulldozerAVX
enum YepStatus yepCore_SumAbs_V64f_S64f ( const Yep64f *restrict  v,
Yep64f *restrict  sumAbs,
YepSize  length 
)

Computes the sum of absolute values of double precision (64-bit) floating-point array elements.

Parameters
[in]vPointer to the array of elements whose absolute values will be summed up.
[out]sumAbsPointer to the variable where the sum of absolute values will be stored.
[in]lengthLength of the array specified by v. If length is zero, the computed sum will be 0.
Return values
YepStatusOkThe computation finished successfully.
YepStatusNullPointerv or sumAbs argument is null.
YepStatusMisalignedPointerv or sumAbs argument is not naturally aligned.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2
x86-64Intel Sandy BridgeAVX
x86-64AMD BulldozerAVX