Re: [eigen] FFT for Eigen
• 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=

```2009/5/19 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
>> - Separately assigning real and imaginary parts, using Eigen vectors.
>> myVec.real() = myRealVec;
>> myVec.imag() = myImagVec;
>
>
>> - 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

```

 Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/