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: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 27 Jan 2010 23:26:01 +0100
- 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 :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=RM7u0oxtpmsrkjmLGSL5OK14PjW9Ml1TCf4XRUnYAnI=; b=RNyFsqFxMWT3kZa9cz9sMe/HqC6dauUU51fBxBVuITEiS3XUWgSOdht2i8HIzfwX/o shA72Xj6Z6GOZWra0ZkP6MWtdESuswMyCw7lbJpI6wmV+KbsP+G2mN2RvbXGOh0GUewH fzhskbo24CvfYD6dLVXkLAQmDkqPwHPnDmhMY=
- 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=wVKihTiN0nYUxMApmUlZsGuDNguT8rxKpx9en/n3+vZrg6x9CeAlLallcahaPJ/uuc MP162nTijjGFm09/rhd/VRKqoaCMogfnGVgGH4MOHtWvoPNRylbVpf3xtQa1t59ZLn4B UObwsRao8cw3jyUxZVrqgfWRIE3SbMbsLekX4=
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.
>
>