Re: [eigen] find command or equivalent |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] find command or equivalent
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 7 Sep 2010 22:27:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BylfmmdGrRuVZbtyrd984IiKS9aC43FTVWO130mmgoM=; b=qrCo+FDqxHwxcxdiNuLrc3bqnLlPQfy2v10F8A3YUx3XxAZqRrw2xAEoNgmLKGYyO2 l6ujQAM3Aj5pw/o3GqceWIQtpu6vzDU+62+RmzD25IlhCfFuwMnxBxhtPnwv8WrUZ028 3rzRko7HZlp+l9pbPaza1NKpIX0cPx1uq4s/U=
- 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=lXDDTlPhxXxzYR2kfagk7vSzncI1emgW7zcOJAfYrCVS2wz9re0JVzZLhb1iesG8cZ mROj6KCTfAaxFeh6Hn9zHBCeAM6+S2xKKtP0R20mOOhu+yhFjqSoQPi2ZvP4B+yzxU17 GYQbbyVUmR949yQuDn8pPOFvxHQU0Kc+uphvs=
2010/9/7 Suresh Kumar <suresh.amritapuri@xxxxxxxxx>:
> Hi Gael,
> I get an error message like that when I used what you had suggested...
> class Eigen::Matrix3f’ has no member named ‘array’
> so what is the next step?
> thanks
> suresh
Are you using eigen2 ? Gael's suggestion was for eigen3 (the
development branch).
Benoit
>
> On Fri, Sep 3, 2010 at 12:19 AM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
> wrote:
>>
>> you can do:
>>
>> A = (A.array()<0.0001).select(0,A);
>>
>> where the "select" method mimics the c++ ?: operator.
>>
>> gael
>>
>>
>> On Fri, Sep 3, 2010 at 6:40 AM, Suresh Kumar
>> <suresh.amritapuri@xxxxxxxxx> wrote:
>> > Hi
>> > I want to replace all elements of a matrix, which are less than a
>> > threshold
>> > by zero. How to do it without writing a nested for loop?
>> > I am looking for something like this in matlab. A(A < 0.001) = 0 where A
>> > is
>> > a matrix.
>> > Thanks
>> > suresh
>> >
>> > --
>> > R Suresh Kumar,
>> > http://www.ee.ucr.edu/~sramachandranna
>> > --
>> > Dhyaana–moolam Guror murtih
>> > Puja-moolam Guroh padam
>> > Mantra – moolam Guror vakyam
>> > Moksha – moolam Guroh krpa.
>> >
>>
>>
>
>
>
> --
> R Suresh Kumar,
> http://www.ee.ucr.edu/~sramachandranna
> --
> Dhyaana–moolam Guror murtih
> Puja-moolam Guroh padam
> Mantra – moolam Guror vakyam
> Moksha – moolam Guroh krpa.
>