Re: [eigen] FFT for Eigen |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] FFT for Eigen
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 19 May 2009 22:10:07 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=u8GXDp391kjPfCSgcRQPsuOgTfhNEM3LarPFHJup0j0=; b=hbz08uAEdDcB0UxiA7OWe05yF0rxADQ1DBhhDxUR/vPiAqS3DW5TZojiZvJYtVukgJ rOzz9wq3Q2hTj0wBE9N+zpTUBdtHHM9RriUjHjUqkUtWa+ZubecUDRwu+ZyIzJs/Fg0y NvbbhXCELYknWWLoXuF6pueGCuLequySb1BUA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lEenNf1com0u1YnCz1KqWHnWZuxzWXHPhf0gowuiAxLkD3pClUzbLRm8JPGIHikY4+ FPjmQ00JAw6VF0s7Z5gOhAYeK6vdVpO8jJL5QDtya+w2giYGR9GMktZyab2Qk1bC/LER KXGfOpdWJPr7sjYYcIPwBvIxPYBct11dthQWw=
On Tue, May 19, 2009 at 9:42 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> 2009/5/19 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
>>> - Separately assigning real and imaginary parts, using Eigen vectors.
>>> myVec.real() = myRealVec;
>>> myVec.imag() = myImagVec;
>>
>> this should already work.
>>
>>> - I need to add the real part of a matrix with the reverse of the real
>>> part of another matrix.
>>> myVec.real() = myVec1.real() + myVec2.real().reverse();
>>
>> this should work too.
>>
>
> Really? The only real() that I can see is const, and anyway, how would
> we implement that? std::real() and std::imag() only return references
> with certain GCC implementations while e.g. on GCC 4.0 / Mac they
> return by value.
>
> It seemed to me that allowing that was one of the things that would
> require us to have our own complex numbers class.
arf, you are right., one more stupid annoying std limitation....
> Cheers,
> Benoit
>
>
>