On Sat, 4 Feb 2012 07:37:51 -0800 (PST), ggeo <[email protected]> wrote:
> Hello,
> 
> using  "typedef  pycuda::complex<float> cmplx;" inside  the " mod
> =SourceModule("""...."
> 
> is there a way to extract (inside 'mod') real and imaginary parts?
> 
> Sth like  cmplx matrix;
>             matrix.real();

Exactly this syntax should work. The interface is the same as
std::complex, see here:

http://www.cplusplus.com/reference/std/complex/complex/

Andreas

Attachment: pgp2MoKx9NUcw.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to