vDSP_vgenD
Generates a double-precision vector that contains monotonically incrementing or decrementing values within a range.
Declaration
extern void vDSP_vgenD(const double *__A, const double *__B, double *__C, vDSP_Stride __IC, vDSP_Length __N);Parameters
- __A:
The start value of the ramp.
- __B:
The end value of the ramp.
- __C:
The output vector.
- __IC:
The distance between the elements in the output vector.
- __N:
The number of elements that the function processes.
Discussion
Use this function to generate and return a vector populated with ramped values.
The following code generates a ramped vector with values in the range 0 ... 7: