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

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


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
> ----------------------------------------------
>
>
>



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