Performs element by element conjugation of the vector.
IppStatus ippsConj_32fc_A24 (const Ipp32fc* pSrc1, const Ipp32fc* pSrc2, Ipp32fc* pDst, Ipp32s len);
IppStatus ippsConj_64fc_A53 (const Ipp64fc* pSrc1, const Ipp64fc* pSrc2, Ipp64fc* pDst, Ipp32s len);
pSrc |
Pointer to the source vector. |
pDst |
Pointer to the destination vector. |
len |
Number of elements in the vectors. |
The function ippsConj is declared in the ippvm.h file. This function performs element by element conjugation of the vector pSrc and stores the result in the corresponding element of the vector pDst.
For single precision data:
function flavor ippsConj_32fc_A24 guarantees 24 correctly rounded bits of significand, including the implied bit, with the maximum guaranteed error within 1 ulp.
For double precision data:
function flavor ippsConj_64fc_A53 guarantees 53 correctly rounded bits of significand, including the implied bit, with the maximum guaranteed error within 1 ulp.
The computation is performed as follows:
pDst[n] = CONJ(pSrc[n]), 0 ≤ n < len.
The example below shows how to use the function ippsConj.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when pSrc1, pSrc2 or pDst pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |
IppStatus ippsConj_32fc_A24_sample(void)
{
const Ipp32fc x[2] = {{+2.885,-1.809}, {-0.543,-2.809}};
Ipp32fc y[2];
IppStatus st = ippsConj_32fc_A24( x, y, 2 );
printf(" ippsConj_32fc_A24:\n");
printf(" x = %+.3f%+.3f*i %+.3f%+.3f*i \n", x[0].re, x[0].im, x[1].re, x[1].im);
printf(" y = %+.3f%+.3f*i %+.3f%+.3f*i \n", y[0].re, y[0].im, y[1].re, y[1].im);
return st;
}
Output results:
ippsConj_32fc_A24:
x = +2.885-1.809*i -0.543-2.809*i
y = +2.885+1.809*i -0.543+2.809*i
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.