![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2003-09-16 14:13:08
Hi,
Since you are not just converting the real array to complex, but actually
multiplying it by complex(0,1), try this:
complex_array2d = exp(std::complex<double>(0.0,1.0) * real_array2d)
Regards, Julian C.
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of wan kuang
> Sent: Monday, September 15, 2003 10:25 PM
> To: blitz-support_at_[hidden]
> Subject: [Blitz-support] Use complex
>
>
> Hi, all
>
> How can I calculate the exponential of an array without using
> explicit loop, like
>
> complex_array2d = exp(complex(0, real_array2d));
>
> when I compile the proceding line, compiler (KCC) complained
> no function matched. What can I do? Thanks!
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi> /blitz-support
>