Function

vDSP_vminD

Calculates the double-precision minimum of the corresponding values of two vectors using specified strides.

Declaration

void vDSP_vminD(const double *__A, vDSP_Stride __IA, const double *__B, vDSP_Stride __IB, double *__C, vDSP_Stride __IC, vDSP_Length __N);

Parameters

__A

Double-precision real input vector.

__IA

Stride for A.

__B

Double-precision real input vector.

__IB

Stride for B.

__C

Double-precision real output vector.

__IC

Stride for C.

__N

The number of elements to process.

Discussion

This function compares the first N elements of A with corresponding elements of B, leaving the lesser (or equal) values as corresponding elements of C:

for (n = 0; n < N; ++n)
    C[n] = A[n] <= B[n] ? A[n] : B[n];

See Also

Vector-to-Vector Minima

vDSP_vmin

Calculates the single-precision minimum of the corresponding values of two vectors using specified strides.

vDSP_vminmg

Calculates the single-precision minimum magnitude of the corresponding values of two vectors using specified strides.

vDSP_vminmgD

Calculates the double-precision minimum magnitude of the corresponding values of two vectors using specified strides.