Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Conversion Functions
The functions described in this section perform the following conversion operations for vectors:
- Sorting all elements of a vector
- Data type conversion (including floating-point to integer and integer to floating-point)
- Joining several vectors
- Extracting components from a complex vector and constructing a complex vector
- Computing the complex conjugates of vectors
- Cartesian to polar and polar to Cartesian coordinate conversion.
This section also describes the Intel IPP functions that extract real and imaginary components from a complex vector or construct a complex vector using its real and imaginary components. The functions ippsReal and ippsImag return the real and imaginary parts of a complex vector in a separate vector, respectively. The function ippsRealToCplx constructs a complex vector from real and imaginary components stored in two respective vectors. The function ippsCplxToReal returns the real and imaginary parts of a complex vector in two respective vectors. The function ippsMagnitude computes the magnitude of a complex vector elements.
- SortAscend, SortDescend
 Sorts all elements of a vector.
- SortIndexAscend, SortIndexDescend
 Rearranges elements of the vector and their indexes.
- SortRadixGetBufferSize
 Computes the size of the buffer for the SortRadixAscend and SortRadixDescend functions.
- SortRadixAscend, SortRadixDescend
 Sorts all elements of a vector using radix sorting algorithm.
- SortRadixIndexGetBufferSize
 Computes the size of the buffer for the SortRadixIndexAscend and SortRadixIndexDescend functions.
- SortRadixIndexAscend, SortRadixIndexDescend
 Indirectly sorts all elements of a vector using radix sorting algorithm.
- TopKGetBufferSize
 Computes the size of the buffer for the TopK function.
- TopKInit
 Initializes pDstValue and pDstIndex arrays for the ippsTopK function.
- TopK
 Returns maximum K values of an array.
- SwapBytes
 Reverses the byte order of a vector.
- Convert
 Converts the data type of a vector and stores the results in a second vector.
- Conj
 Stores the complex conjugate values of a vector in a second vector or in-place.
- ConjFlip
 Computes the complex conjugate of a vector and stores the result in reverse order.
- Magnitude
 Computes the magnitudes of the elements of a complex vector.
- Phase
 Computes the phase angles of elements of a complex vector.
- PowerSpectr
 Computes the power spectrum of a complex vector.
- Real
 Returns the real part of a complex vector in a second vector.
- Imag
 Returns the imaginary part of a complex vector in a second vector.
- RealToCplx
 Returns a complex vector constructed from the real and imaginary parts of two real vectors.
- CplxToReal
 Returns the real and imaginary parts of a complex vector in two respective vectors.
- Threshold
 Performs the threshold operation on the elements of a vector by limiting the element values by specified value.
- Threshold_LT, Threshold_GT
 Performs the threshold operation on the elements of a vector by limiting the element values by the specified value.
- Threshold_LTAbs, Threshold_GTAbs
 Performs the threshold operation on the absolute values of elements of a vector.
- Threshold_LTVal, Threshold_LTAbsVal, Threshold_GTVal, Threshold_LTValGTVal
 Performs the threshold operation on the elements of a vector by limiting the element values by the specified level and replacing them with the specified value.
- Threshold_LTInv
 Computes the inverse of vector elements after limiting their magnitudes by the given lower bound.
- CartToPolar
 Converts the elements of a complex vector to polar coordinate form.
- PolarToCart
 Converts the polar form magnitude/phase pairs stored in input vectors to Cartesian coordinate form.
- MaxOrder
 Computes the maximum order of a vector.
- Flip
 Reverses the order of elements in a vector.
- FindNearestOne
 Finds an element of the table which is closest to the specified value.
- FindNearest
 Finds table elements that are closest to the elements of the specified vector.