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

Functions

enum YepStatus yepCore_DotProduct_V32fV32f_S32f (const Yep32f *restrict x, const Yep32f *restrict y, Yep32f *restrict dotProduct, YepSize length)
 Computes the dot product of two vectors of single precision (32-bit) floating-point elements. More...
 
enum YepStatus yepCore_DotProduct_V64fV64f_S64f (const Yep64f *restrict x, const Yep64f *restrict y, Yep64f *restrict dotProduct, YepSize length)
 Computes the dot product of two vectors of double precision (64-bit) floating-point elements. More...
 

Detailed Description

Function Documentation

enum YepStatus yepCore_DotProduct_V32fV32f_S32f ( const Yep32f *restrict  x,
const Yep32f *restrict  y,
Yep32f *restrict  dotProduct,
YepSize  length 
)

Computes the dot product of two vectors of single precision (32-bit) floating-point elements.

Parameters
[in]xPointer to the first vector of elements.
[in]yPointer to the second vector of elements.
[out]dotProductPointer to the variable where the dot product value will be stored.
[in]lengthLength of the vectors specified by x and y.
Return values
YepStatusOkThe computation finished successfully.
YepStatusNullPointerx, y or dotProduct argument is null.
YepStatusMisalignedPointerx, y or dotProduct argument is not naturally aligned.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE3
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, FMA3
x86-64AMD BulldozerAVX, FMA4
enum YepStatus yepCore_DotProduct_V64fV64f_S64f ( const Yep64f *restrict  x,
const Yep64f *restrict  y,
Yep64f *restrict  dotProduct,
YepSize  length 
)

Computes the dot product of two vectors of double precision (64-bit) floating-point elements.

Parameters
[in]xPointer to the first vector of elements.
[in]yPointer to the second vector of elements.
[out]dotProductPointer to the variable where the dot product value will be stored.
[in]lengthLength of the vectors specified by x and y.
Return values
YepStatusOkThe computation finished successfully.
YepStatusNullPointerx, y or dotProduct argument is null.
YepStatusMisalignedPointerx, y or dotProduct argument is not naturally aligned.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, FMA3
x86-64Intel BonnellSSE, SSE2
x86-64AMD BulldozerAVX, FMA4
Examples:
Entropy.c.