Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6704 Discussions

Multiplying a complex vector with a real scalar

fa
Beginner
579 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
579 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
0 Kudos
snirgaz
Beginner
579 Views
Hi,

Regrading ippsMul_64f64fc.

Is this feature already implemented?

Thanks

Snir

0 Kudos
Vladimir_Dudnik
Employee
579 Views
Hi Snir,

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

Regards,
Vladimir
0 Kudos
Reply