Re: [eigen] inf-norm of complex-matrix columns |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] inf-norm of complex-matrix columns*From*: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>*Date*: Thu, 3 Jun 2010 16:36:56 -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=BafMCzE11YRpFw7VmgxN7RnCGHOtZ3hugfoQ1F241mw=; b=SD3KTCiNYU1w04RWpSURtWKgnskRfLSaTKRc8o/ROMO2s9WmhcDb4JHAsqRLQe7ei0 cxAewdneacchnffAhC99s4HDs2dwDT9iNz7r4NhETczYcrjXcNdwPYZGfoar1bIrJZUN WanGfWMyDWYuozmhH/6ndUytbOtlw/PLBPBBs=*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=IAopBh1zaVxyqf8ZoQqkRKGqGV2d19a0AxhtSpn7iJnieboA8cN/+riVfcKdbgNBSi DxZCMbItSNBJy+SH2PmXWUgIp1afPhHkfEfQQKoklcs8bt5cPrKlavrAiKnxMY4s6rIj hSkxfoTPO+BnONQix8VFOftR987sdTu0vKlDU=

Oops, I didn't see the "colwise" part. I don't think lpNorm() is supported on colwise() at the moment. 2010/6/3 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>: > Yep, and also, IIRC, we have a built-in function for that: > matrix.lpNorm<Infinity>() > > Benoit > > 2010/6/3 Martin Senst <martin.senst@xxxxxx>: >> Hi, >> >> I think either >> >> M.cwise().abs().colwise().maxCoeff(); >> >> or >> >> M.cwise().abs2().colwise().maxCoeff().cwise().sqrt(); >> >> is what you want. With complex numbers, the latter version is probably faster >> since it computes fewer square roots. >> >> Martin >> >> >> >> >> >> Am Donnerstag 03 Juni 2010, 21:21:38 schrieb Manoj Rajagopalan: >>> Hi, >>> >>> Can someone help me come up with an expression to calculate the >>> infinity-norm of the columns of a matrix, treated as vectors? I want to >>> calculate the modulus of the complex entries in each column, and the >>> maximum within that column. Therefore, my result should be a >>> vector-expression whose length is the number of rows. In the following >>> case, 4. >>> >>> MatrixXcd M(5,4); >>> M.setRandom(); >>> M.colwise().????? >>> >>> Thanks, >>> Manoj >> >> >> >> >

**References**:**[eigen] inf-norm of complex-matrix columns***From:*Manoj Rajagopalan

**Re: [eigen] inf-norm of complex-matrix columns***From:*Martin Senst

**Re: [eigen] inf-norm of complex-matrix columns***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] inf-norm of complex-matrix columns** - Next by Date:
**[eigen] we were supposed to tag beta1 today...!** - Previous by thread:
**Re: [eigen] inf-norm of complex-matrix columns** - Next by thread:
**[eigen] we were supposed to tag beta1 today...!**

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