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*: Suresh Kumar <suresh.amritapuri@xxxxxxxxx>*Date*: Tue, 7 Sep 2010 21:05:49 -0700*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; bh=FtH5yyNKiNGhxGTulkSdKyf4Eqmnd1fa63RAo+OeeEU=; b=sdblBGzupRziuw1Xd9T2u2OM/8wxJmMCcIEzHEYbuMkdd8TFx9tTZzr4u6UTtl6PuP cFs/Rcpp61R/PvwdmYzuTjPNiKD39LwtlUvrWCotygl/kuFWGb2nOBlmCuTENpCMWQ+4 LlFv8Eqc+7/lXqEEzt3K5rjkMzX2z7DvoEAWM=*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; b=miXVUdcbviBFr1MqL4mBuvz1/8Zi+fpbcFNh77Tqe5Wh2HbJra7dS/ShlEDqYbL4Kd zrKkZbMAVT4rugb04SA1cIyDoGGO3dAffzpxcqWxlRBO4uTupRnXwOiMcTLBZBWCh1tf 6wXvNWSeOyQkXHUCJHF4RcPgsey+i5OBL4jaU=

hi

I am using eigen2 in ubuntu 10.04. How to do this in eigen2?

thanks

suresh

On Tue, Sep 7, 2010 at 7:27 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:

R Suresh Kumar,2010/9/7 Suresh Kumar <suresh.amritapuri@xxxxxxxxx>:

> Hi Gael,Are you using eigen2 ? Gael's suggestion was for eigen3 (the

> 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

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

http://www.ee.ucr.edu/~sramachandranna

--

Dhyaana–moolam Guror murtih

Puja-moolam Guroh padam

Mantra – moolam Guror vakyam

Moksha – moolam Guroh krpa.**Follow-Ups**:**Re: [eigen] find command or equivalent***From:*Gael Guennebaud

**References**:**[eigen] find command or equivalent***From:*Suresh Kumar

**Re: [eigen] find command or equivalent***From:*Gael Guennebaud

**Re: [eigen] find command or equivalent***From:*Suresh Kumar

**Re: [eigen] find command or equivalent***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] find command or equivalent** - Next by Date:
**Re: [eigen] find command or equivalent** - Previous by thread:
**Re: [eigen] find command or equivalent** - Next by thread:
**Re: [eigen] find command or equivalent**

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