Re: [eigen] Fast method for computing Gramian Matrix |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Fast method for computing Gramian Matrix
- From: Douglas Bates <bates@xxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2012 07:18:16 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=CmGHdeGwISk8P/lNB2mXb1T5GTls63wFxQCdgoK5vOU=; b=OEaL7VbsJkikXvqlVX5l/Ugr7hworFGqbnN8HfPQTQmACBghmqbn3QiqJYNwD20MDR 4SKHhlmQ/9K+byqAxy/qIVVZ8bY4Tu3mEkqw64FrmdwgROowu8Vh4fBdGo3TQODqAMXf Z3/1Zey3N3Lv5jLr+fUCBQIzbUzbO+9CCcu8f4uiSG7exmTxvrW4ZBMuHxjtnM7b0VtW GsMiTgeXjMuJewIHA7pe8SvBweR5g/gIUHmpCmdstSCFJNuGVqzamVyT8uKCk5LGOj5g OuMycx+N4aWIeKhrlg11vj+OKQIwkYYNaYPGhRldam1hC2NZ5GXAa3E/qNXn054NLqnz 1CuQ==
On Thu, Mar 29, 2012 at 3:50 AM, Mark Borgerding <mark@xxxxxxxxxxxxxx> wrote:
> (sorry for hitting send too soon)
>
> http://en.wikipedia.org/wiki/Gramian_matrix
>
> What is the fastest way to compute MM' when M is wide?
> The diagonal elements are the norm-squared of the rows of M. The result is
> Hermitian.
>
> Is there an optimized method in Eigen or otherwise?
I have used the rankUpdate method for a selfadjoint view to calculate
this. I assume that it is an efficient way to calculate the result
but I haven't done any timings.
MatrixXcd MMt(M.rows(), M.rows();
MMt.setZero().selfadjointView<Eigen::Upper>().rankUpdate(M);