Re: [eigen] Re: Error when using the += operator on complex vectors |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Re: Error when using the += operator on complex vectors*From*: Keir Mierle <mierle@xxxxxxxxx>*Date*: Sat, 24 Jul 2010 10:58:50 -0700*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=CtNhRUdVr623P9qvYJZuh+O84LlpDr5A/WvFNlCKyp8=; b=KkXnBUuE+23aenWJ6XtaIv05KytK6wayBYZkY61/Wzbp5xS6rFrLiFRiMPftERoQsD AaTge7zd3xN7DjXe2cjNo0AxdMviLRZIMyE+1LIv0TwPze/TxXvnAxKZTTNn+fAX4s+v wNVXYF27NMv5XI7kqbGrCs4k0Kg1sdnqIicGk=*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; b=Lyi/KdbAYNvs2uBDG9YvqWzjlGkKDQdkNaKrZGzCRKzMThRuEM5RfrKv6h4XHrJdan WN/ZHNyvsBv3DWLfFfjShT6wDYSU5yV69ybVx9bUpgnMYaDhUfmHiZ+1jgadomgKZaV/ 8cOFV0iVARwGbF42IRZ8pAGg+Il+6JmKLdELY=

On Sat, Jul 24, 2010 at 8:55 AM, Carlos Becker <carlosbecker@xxxxxxxxx> wrote:

Ok I think I just figured it out,again the array syntax, and now with the * operatorThe problem is that this works:

fftData[0] += fftData[2].array();

and to make the last one work I had to add:fftData[0].array() += fftData[2].array() * fftData[1].array();

shouldn't Matrix = Array be completely prohibited?

Regardless of what the code currently does, it seems as though matrix += array should be unambiguous, and work fine. Is there a technical reason this can't be supported? Furthermore, would it be possible to make arrays "viral" in that A OP B with A an array or B an array gives an array so the next lines become equivalent:

A += B.array() * C

A += B * C.array()

A.array() += B.array() * C

A.array() += B * C.array()

A.array() += B.array() * C.array()

I imagine there is some pitfall preventing this, but it would reduce .array() clutter.

Keir

On Sat, Jul 24, 2010 at 4:54 PM, Carlos Becker <carlosbecker@xxxxxxxxx> wrote:

Hello, I am trying to do this:fftData[0] += fftData[2].array() * fftData[1].array();

and I get the error:THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS

fftData is an array of VectorXcf, is this a bug or is it warning me about something I should not do?Thanks

**Follow-Ups**:**Re: [eigen] Re: Error when using the += operator on complex vectors***From:*Christoph Hertzberg

**References**:**[eigen] Error when using the += operator on complex vectors***From:*Carlos Becker

**[eigen] Re: Error when using the += operator on complex vectors***From:*Carlos Becker

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] Re: Error when using the += operator on complex vectors** - Next by Date:
**Re: [eigen] Re: Error when using the += operator on complex vectors** - Previous by thread:
**[eigen] Re: Error when using the += operator on complex vectors** - Next by thread:
**Re: [eigen] Re: Error when using the += operator on complex vectors**

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