Contents

vDSP_sve

Calculates the sum of values in a single-precision vector.

Declaration

extern void vDSP_sve(const float *__A, vDSP_Stride __I, float *__C, vDSP_Length __N);

Parameters

  • __A:

    Single-precision real input vector.

  • __I:

    Stride for A.

  • __C:

    Single-precision real output scalar.

  • __N:

    The number of elements to process.

Discussion

This function calculates the sum of the first N elements of A and writes the result to C:

[Image]

The operation is:

C[0] = sum(A[n], 0 <= n < N);

The following code shows an example of using vDSP_sve:

See Also

Vector Summation