Multiplying a complex vector with a real scalar

Multiplying a complex vector with a real scalar

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);

Message Edited by on 10-19-2004 04:57 AM

Message Edited by on 10-19-2004 05:04 AM

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


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.



Regrading ippsMul_64f64fc.

Is this feature already implemented?



Hi Snir,

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


Leave a Comment

Please sign in to add a comment. Not a member? Join today