Re: [eigen] New true array class ? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] New true array class ?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 27 Jan 2010 12:50:09 -0500
- 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=WkHhPF/pfumVq7xRuM/8r2ISLbrrTmpTWh0YV5o1Ejo=; b=eW4z5/X98i7Ge5S8YGjyUp/WIAVAanElsXPu/sMbxNXaIv0p9VXmyHTfHSWC8pINzv 6H0xhEUoOKgYnvn0u/8+YolgQKhVAq3u4Oac3pyIS1mU9tBYUvjRZQx8xQ52YB0L272d ZHQWwvx4wwjtI1rtMiyid+8hCOTYV0HOAxKDg=
- 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:content-transfer-encoding; b=wyQuLTXzrCUQtocGjTe2xJ9VxZibuHXs2rd6ma3a6lSUtdPqcAkMkvsZZoFTuPxteE 8erWmUtoUqBAAMrJe6TxofRzeTdbPB48Hb/Rm17DNRtyF8mHgQakylk83Xo7j/WaHwXX x+IRvKkMmC5m0vDqNC/1AlvW3No+cldtEvSfw=
2010/1/27 Boris Mansencal <boris.mansencal@xxxxxxxx>:
> Hi,
>
> I have some questions relative to Gael's work on true Array class (with
> component wise operations) :
> - Has its fork been merged with main development branch ?
Yes.
> - 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();
Benoit
>
> Thanks a lot,
>
> Boris.
>
>
>
>