Contents

vDSP_maxmgvD

Calculates the double-precision maximum magnitude of a vector.

Declaration

extern void vDSP_maxmgvD(const double *__A, vDSP_Stride __IA, double *__C, vDSP_Length __N);

Parameters

  • __A:

    The input vector, A.

  • __IA:

    The distance between the elements in the input vector.

  • __C:

    The output scalar value, C. If N is zero, the function sets C to 0.

  • __N:

    The number of elements that the function processes.

Discussion

This function calculates the maximum magnitude of the first N elements of input vector A, and writes the result to output scalar C.

[Image]

The following code shows an example of using this function:

See Also

Calculating the maximum value of a vector