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. IfNis zero, the function setsCto0. - __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: