Function

vDSP_minvD

Calculates the minimum value in a double-precision vector.

Declaration

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

Parameters

__A

Double-precision real input vector.

__I

Stride for A

__C

Output scalar

__N

The number of elements to process. If N is zero (0), this function returns -INFINITY.

Discussion

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

A diagram showing the operation of the vDSP_minv function. There are three rows. The top row represents the input, vector A. The second row represents the minimum value operation. The bottom row represents the output, vector C. The diagram has connecting lines from the input vectors to the operation and from the operation to the output vector indicating the relationships between the input and output.

The operation is:

*C = +INFINITY;
for (n = 0; n < N; ++n)
    if (*C > A[n*I])
        *C = A[n*I];

See Also

Minimum Calculation

vDSP_minv

Calculates the minimum value in a single-precision vector.

vDSP_minvi

Calculates the minimum value and corresponding index in a single-precision vector.

vDSP_minviD

Calculates the minimum value and corresponding index in a double-precision vector.

vDSP_minmgv

Calculates the minimum magnitude in a single-precision vector.

vDSP_minmgvD

Calculates the minimum magnitude in a double-precision vector.

vDSP_minmgvi

Calculates the minimum magnitude and corresponding index in a single-precision vector.

vDSP_minmgviD

Calculates the minimum magnitude and corresponding index in a double-precision vector.