Contents

vDSP_maxvD

Calculates the double-precision maximum value of a vector.

Declaration

extern void vDSP_maxvD(const double *__A, vDSP_Stride __I, double *__C, vDSP_Length __N);

Parameters

  • __A:

    The input vector, A.

  • __I:

    The distance between the elements in the input vector.

  • __C:

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

  • __N:

    The number of elements that the function processes.

Discussion

This function calculates the maximum value 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