Re: [eigen] New true array class ?

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


this is because this was not implemented. done now for sin, cos, exp,
log, abs, and sqrt. feel free to send a patch to support more (I've no
time right now)

gael

On Wed, Jan 27, 2010 at 7:38 PM, Boris Mansencal
<boris.mansencal@xxxxxxxx> wrote:
> Quoting Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
>
>> 2010/1/27 Boris Mansencal <boris.mansencal@xxxxxxxx>:
>>
>>> - How do we declare a vector and apply sin() to it ?
>>>  The following code does not compile (with both branches) :
>>>  Eigen::ArrayXd v1(N);
>>>  //...
>>>  Eigen::ArrayXd v2 = sin(v1);
>>
>> Hm it's either std::sin (so make sure you have using namespace std) or
>> ei_sin or v1.sin();
>
> thanks, v1.sin() works but neither std::sin(v1) nor eis_in(v1) works.
>
> Maybe I do something wrong. See my attached very simple example.
>
> Boris.
>
>



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