Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6625 Discussions

Multiplying a complex vector with a real scalar

fa
Beginner
233 Views
To multiply a complex vector with a real scalar I have used the ippsMulC_64fc function, and represented the real scalar as a complex one with zero imaginary part.
This seems unnessesary, so I tried instead to use ippsMulC_64f function and instead treat the complex vector as a real one of twice the size. The two approaches give the same results but strangely the complex routine is faster.Is there any better way to multiply complex vectors with real scalars?
The code used is of the form:
Ipp64fc *in, *out, val;
stat=ippsMulC_64fc(in, val, out,length);
stat=ippsMulC_64f((double*)in, val.re,(double*)out,2*length);

Message Edited by fa@maths.lth.se on 10-19-2004 04:57 AM

Message Edited by fa@maths.lth.se on 10-19-2004 05:04 AM

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
233 Views
Hi,
thanks for the question, we found problem in optimized code of ippsMulC_64f and ippsMulC_64fc function, their performance will be improved in the next version. We also think about adding of new function, ippsMul_64f64fc in the next version.
Regards,
Vladimir
snirgaz
Beginner
233 Views
Hi,

Regrading ippsMul_64f64fc.

Is this feature already implemented?

Thanks

Snir

Vladimir_Dudnik
Employee
233 Views
Hi Snir,

as I can see from product documentation only 32f32fc variant of ippsMul function is availbale.

Regards,
Vladimir
Reply