Counts and finds the zero crossings in a single-precision vector.
- iOS 4.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Single-precision real input vector.
Address stride for
Maximum number of crossings to find.
Index of last crossing found.
Total number of zero crossings found
Number of elements in
This performs the following operation:
The "function" sign(x) above has the value -1 if the sign bit of x is 1 (x is negative or -0), and +1 if the sign bit is 0 (x is positive or +0).
A to locate transitions from positive to negative values and from negative to positive values. The scan terminates when the number of crossings specified by
B is found, or the end of the vector is reached. The zero-based index of the last crossing is returned in
C is the actual array index, not the pre-stride index. If the zero crossing that
B specifies is not found, zero is returned in
C. The total number of zero crossings found is returned in
Note that a transition from -0 to +0 or from +0 to -0 is counted as a zero crossing.