vDSP_svesqD
Calculates the sum of squares in a double-precision vector.
Declaration
extern void vDSP_svesqD(const double *__A, vDSP_Stride __IA, double *__C, vDSP_Length __N);Parameters
- __A:
Double-precision real input vector.
- __IA:
Stride for
A - __C:
Double-precision real output scalar
- __N:
The number of elements to process
Discussion
This function calculates the sum of the squares of the first N elements of A and writes the result to C:
[Image]
The operation is:
C[0] = sum(A[n] * A[n], 0 <= n < N);