Calculates whether each element in a single-precision vector falls within a specified range.


func vDSP_venvlp(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Float>, _ __IB: vDSP_Stride, _ __C: UnsafePointer<Float>, _ __IC: vDSP_Stride, _ __D: UnsafeMutablePointer<Float>, _ __ID: vDSP_Stride, _ __N: vDSP_Length)



Single-precision real input vector: high envelope.


Stride for A.


Single-precision real input vector: low envelope.


Stride for B.


Single-precision real input vector.


Stride for C.


Single-precision real output vector.


Stride for D.


The number of elements to process.


Finds the extrema of C. For the first N elements of C, the corresponding element of A provides an upper-threshold value, and the corresponding element of B provides a lower-threshold value. If the value of an element of C falls outside the range defined by these thresholds, it is copied to the corresponding element of D. If its value is within the range, the corresponding element of D is set to zero:

mathematical formula

See Also

Vector-to-Vector Extrema Finding

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software