Contents

vDSP_vgenpD

Generates the double-precision linearly interpolated values of a vector at the specified indices.

Declaration

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

Parameters

  • __A:

    The input vector that defines the values that the function interpolates.

  • __IA:

    The distance between the elements in the values vector.

  • __B:

    The input vector that defines the indices at which the function interpolates.

  • __IB:

    The distance between the elements in the indices vector.

  • __C:

    The output vector.

  • __IC:

    The distance between the elements in the output vector.

  • __N:

    The number of elements that the function processes.

  • __M:

    The number of elements in the values and indices input vectors.

Mentioned in

Discussion

The following code creates a five-element vector from two values using linear interpolation. The last index in indices determines the length of the operation result:

See Also

Vector generation by extrapolation and interpolation