Phase

Computes the phase angles of elements of a complex vector.

Syntax

IppStatus ippsPhase_64fc(const Ipp64fc* pSrc, Ipp64f* pDst, int len);

IppStatus ippsPhase_32fc(const Ipp32fc* pSrc, Ipp32f* pDst, int len);

IppStatus ippsPhase_16sc32f(const Ipp16sc* pSrc, Ipp32f* pDst, int len);

IppStatus ippsPhase_64f(const Ipp64f* pSrcRe, const Ipp64f* pSrcIm, Ipp64f* pDst, int len);

IppStatus ippsPhase_32f(const Ipp32f* pSrcRe, const Ipp32f* pSrcIm, Ipp32f* pDst, int len);

IppStatus ippsPhase_16s32f(const Ipp16s* pSrcRe, const Ipp16s* pSrcIm, Ipp32f* pDst, int len);

IppStatus ippsPhase_16sc_Sfs(const Ipp16sc* pSrc, Ipp16s* pDst, int len, int scaleFactor);

IppStatus ippsPhase_16s_Sfs(const Ipp16s* pSrcRe, const Ipp16s* pSrcIm, Ipp16s* pDst, int len, int scaleFactor);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

pSrc

Pointer to the source vector.

pSrcRe

Pointer to the source vector which stores the real components.

pSrcIm

Pointer to the source vector which stores the imaginary components.

pDst

Pointer to the vector which stores the phase (angle) components of the elements in radians. Phase values are in the range (-π, π].

len

Number of elements in the vector

scaleFactor

Scale factor, refer to Integer Scaling .

Description

This function returns the phase angles of elements of the complex input vector pSrc, or the complex input vector whose real and imaginary components are specified in the vectors pSrcRe and pSrcIm, respectively, and stores the result in the vector pDst. Phase values are returned in radians and are in the range (-π, π] .

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when at least one of the specified pointers is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to zero.

Example

Phase.c

For more complete information about compiler optimizations, see our Optimization Notice.