ConjCcs

Converts the data in CCS format to complex data format.

Syntax

IppStatus ippsConjCcs_16sc(const Ipp16s* pSrc, Ipp16sc* pDst, int lenDst);

IppStatus ippsConjCcs_32fc(const Ipp32f* pSrc, Ipp32fc* pDst, int lenDst);

IppStatus ippsConjCcs_64fc(const Ipp64f* pSrc, Ipp64fc* pDst, int lenDst);

IppStatus ippsConjCcs_16sc_I(Ipp16sc* pSrcDst, int lenDst);

IppStatus ippsConjCcs_32fc_I(Ipp32fc* pSrcDst, int lenDst);

IppStatus ippsConjCcs_64fc_I(Ipp64fc* pSrcDst, int lenDst);

Parameters

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

pSrcDst

Pointer to the source and destination vector (for the in-place operation).

lenDst

Number of elements in the vector.

Description

The function ippsConjCcs is declared in the ipps.h file. This function converts the data in CCS format in the vector pSrc to complex data format and stores the results in pDst.

The in-place function ippsConjCcs converts the data in CCS format in the vector pSrcDst to complex data format and stores the results in pSrcDst.

The following tble shows the examples of unpack from the CCS format. The Data column contains the real input data to be converted by the forward FFT transform to the packed data. The packed real data are in the Packed column. The output result is the complex data vector in the Extended column. The number of vector elements is in the Length column.The data stored in CCS format are two real elements longer.

Examples of Unpack from the CCS Format
Data Packed Extended Length
FFT([1]) 1, 0 {1, 0} 1
FFT([1 2]) 3, 0, -1, 0 {3, 0}, {-1, 0} 2
FFT([1 2 3]) 6, 0, -1.5, 0.86 {6, 0}, {-1.5, 0.86}, {-1.5, -0.86} 3
FFT([1 2 3 9]) 15, 0, -2, 7, -7, 0 {15, 0}, {-2, 7}, {-7, 0}, {-2, -7} 4
Example below shows how to use the function ippsConjCcs

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrcDst, pDst, or pSrc pointer is NULL.

ippStsSizeErr

Indicates an error when lenDst is less than or equal to 0.

Using the ippsConjCcs Function

void ConjCcs(void) {
      Ipp16s x[8] = {1,2,3,5,6,7,8,9};
      Ipp16sc zero={0,0}, y[6];
      IppStatus st;
      ippsSet_16sc( zero, y, 6 );
      st = ippsConjCcs_16sc( x, y, 6 );
      printf_16sc(“CCS 6:”, y, 6, st );
      ippsSet_16sc( zero, y, 6 );
      st = ippsConjCcs_16sc( x, y, 5 );
      printf_16sc(“CCS 5:”, y, 5, st );
}
Ouput:
    CCS 6:  {1,2} {3,5} {6,7} {8,9} {6,-7} {3,-5}
    CCS 5:  {1,2} {3,5} {6,7} {6,-7} {3,-5}

	

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.