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: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 19 May 2009 21:42:42 +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=mVSmBlvbkI7LnI8Ih95gmzdf8vN/7oXPSm1BUV6rzXo=; b=qkwFvRYj83dFVuG7eYb9qKlSEClK2owQZXwcSbI9EEpV7BwgNk6q30zNWNfsYnnaSn 56F/wCJdOqk1VUvKAEraxzGJ7E6qgkSO68NjUdTqzu0YnCetl82ZDHVbhHSkoIpjZbfd PQfFJ+5T0CSsX5Rx8CWAJbqLsrXbUKENV8jG4=
- 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=IEeqzVxjsJwzBa98pXUEU8q/hOK+cKptkGkHk55RmrdHA1cPxXiyPGA3Lf7uQvWgNi IBle7Ydngez/cmyLoCbQRnQyOCsj7Bk+u5ILMgY2DixOwa/fqQNqRpad9KkwmJgRtLD5 +kcagYoLPETP/WL5XF3TabNzrU6KTVf3aJzi4=
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.
Cheers,
Benoit