Function

vDSP_sve_svesq

Sum of vector elements and sum of vector elements' squares; single precision.

Declaration

void vDSP_sve_svesq(const float *__A, vDSP_Stride __IA, float *__Sum, float *__SumOfSquares, vDSP_Length __N);

Parameters

__A

Single-precision input vector.

__IA

Stride for the input vector.

__Sum

Single-precision sum (scalar) of the elements of A.

__SumOfSquares

Single-precision sum (scalar) of the squares of the elements of A.

__N

Number of elements in A.

Discussion

Note that the two results are pointers to the actual values.