Generates a single-precision vector, by interpolating values from a lookup table.
- 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
Pointer to single-precision real input scalar: scale factor.
Pointer to single-precision real input scalar: base offset.
Single-precision real input vector: lookup table.
Lookup table size.
Single-precision real output vector.
The number of elements to write to
Performs the following operation:
F is scaling factor
G is offset
Evaluates elements of vector
A for use as offsets into vector
C is a zero-based lookup table supplied by the caller that generates output values for vector
D. Linear interpolation is used to compute output values when an offset is not an integer. Scale factor
S1 and base offset
S2 map the anticipated range of input values to the range of the lookup table and are typically assigned values such that:
If an offset is less than zero or greater than
C[M-1] is written to the output, respectively. For inputs that evaluate integrally, the table location indexed by the integral is copied as the output value.