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: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Sun, 25 Jul 2010 22:32:40 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=bYWH0A0m6f/BkXQmZIQNLOjRRLASQBzAdNQlvzUUPDc=; b=kw/6hRFlMoM7kIdQ6gOpfzoSNJTO+vIs7tQpR5J+meC6mQJ4Mf/lwmfCpBQhEuWKyj tdnuoyN4JlQv6Q5hlr48iWd5qYjoAG2ZGKrzYMS9oEVALPCzLMxSAozglNaVD4KxJkRI 8soOd9xy2FDhIFWUzjkcXaYWJ7v9sHK1m1N74=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Ho1s/7OuKzBH1nsrAvlSFXNeM6fOtYJsMeyMmv+yh5TB1zKhsXwnQEa3u/ZX+5f5iZ v+3fG6vCQI687hzFeMW72mQKit7fwWxIo7nZJtWDPQEYT2WDvtX6+SWBPI5c4PZNtbsK /S5SEbHHkv1PWYk15PNzMNkqPSHzusLC3PIBo=
On Sun, Jul 25, 2010 at 12:42 AM, Christoph Hertzberg
<chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Gael Guennebaud schrieb:
>> On Sat, Jul 24, 2010 at 9:34 PM, Christoph Hertzberg
>> <chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>> However, I would agree that addition and subtraction are unambiguous
>>> between arrays and matrices.
>>
>> but shall we return an array or a matrix ?
>
> Ok, I hadn't thought of that. I totally agree now that it's Überkill..
>
>> [...]
>> (array1 + matrix1).sin()
>
> BTW: is there a reason why not write:
> sin(array1)
> instead of
> array1.sin() ?
for array you can also do sin(array) ;)
gael
> (just out of interest, not suggesting hardly worthwhile API changes now)
>
> Christoph
>
>
> --
> ----------------------------------------------
> Dipl.-Inf. Christoph Hertzberg
> Cartesium 0.051
> Universität Bremen
> Enrique-Schmidt-Straße 5
> 28359 Bremen
>
> Tel: (+49) 421-218-64252
> ----------------------------------------------
>
>
>