Re: [eigen] Is post-multiplication by diagonal matrix optimized? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Is post-multiplication by diagonal matrix optimized?
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 22 Jun 2010 09:55:15 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=mkRRQSA9UICaaAe9vUrfcSg6nvXkXpC//HYPUxxEPUE=; b=jz4C2B50/EueoHo7/eJUshJ6l8yfA2UU/9PepdEMob+OAei5Tx6rlTEcDI1SRHa6Wf XdrEy6l9O5AgCGCaUk8e+qK1ZU4RsyX8yjX4sReJQz+j0VF6OE0Jibo6fWswwl1vSmwO upvMk/Qd3FAJtlIfPOoiDukozZlQgm227SQoc=
- 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=ZFzhIK3BcvxFpG/9Zm4bQ1/Gb9+BrwLpHypA0s9ayz2SlhBAUt153qP6QY/0q02AXh ROeyFQdhiuGhzSAtYAVLTqk7k1IHVk9A0BWmGdHp8rwWR3rX2WrkfY2y1kHINL653pqi l6j0E7xjejiwgDVTr2tGFmOFirgqE6ltyqYro=
Hi,
yes it is. or at least it should be. so fell free to come back if you
think you have some perf issue.
gael
On Tue, Jun 22, 2010 at 1:17 AM, Manoj Rajagopalan <rmanoj@xxxxxxxxx> wrote:
> Hi,
>
> I've been told that premultiplication by a diagonal matrix is optimized by
> eigen:
>
> VectorXd v(N);
> MatrixXd M(N,N);
> v.asDiagonal() * M
>
> Is M * v.asDiagonal() also recognized and optimized?
>
> thanks,
> Manoj
>
>
>