Re: [eigen] Fast QR for 2x2, 3x3 |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Fast QR for 2x2, 3x3*From*: Andrea Arteaga <yo.eres@xxxxxxxxx>*Date*: Mon, 23 Feb 2009 11:51:00 +0100*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=4OGgjxJHd3SsAPb8IH3awscsqnJbl4SwZ3uCNa1Utdg=; b=QuL8od50ibtZL03V4NPj71zrNhEwzJW69AtunrMAP48HVw3px8OMezS8A/lY5r56tH bDyCR5GFEqrN5r7nuKY0qY6w7uq5uvgoLpR7+Zv10YP784AHP/ncknMdWzwuRu3SaUxf pKEuBkfmDfiifnJbLP3u4QSiafwAyED/nrJM4=*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=cj4bz2doc0eneSloVRoSqyZpJ7R3dwIoqFdQq92piXtrvpEki1A+wWNYofBJWux++m jDbGR5B4kdtrbZZ37Ych/tTTNs/pdHs0yl2Qhdz2TWbEWjrrZ1Kb71Bq9WZeFiNMd6n1 cjc16dq0NMv+iROq2OWjCUMw+Bop1DUMHpPF0=

2009/2/23 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>

All I can say for sure is that Givens rotations don't

require computing cosines and sines!

Right. Sorry for lapsus. (I was thinking about inverse problem).

Perhaps for 4x4 or more Gram-Schmidt is faster than Givens, but for 2x2 and 3x3 I think that Givens are the best way. The only way to test it is to implement both algorithms and compare the results.

In 2x2 case there is nothing to do (I use the Matlab syntax):

A = [a, b; c, d] => r = ||A|| , Q = [a/r, -b/r; b/r, a/r] , R = Q' * A

We can use this direct approach.

In 3x3 case we need 3 Givens rotations and 3 matrix products and that can be expensive, but we can write directly the product's result or use lazy evaluation.

At this moment I have some troubles with my Gentoo, but I hope I can write something.

Thanks for the link to Golub & van Loan.

Another question: Which product algorithm is used in Eigen?

**Follow-Ups**:**Re: [eigen] Fast QR for 2x2, 3x3***From:*Benoit Jacob

**Re: [eigen] Fast QR for 2x2, 3x3***From:*grey_earl

**References**:**[eigen] Fast QR for 2x2, 3x3***From:*Andrea Arteaga

**Re: [eigen] Fast QR for 2x2, 3x3***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Fast QR for 2x2, 3x3** - Next by Date:
**Re: [eigen] Alignment** - Previous by thread:
**Re: [eigen] Fast QR for 2x2, 3x3** - Next by thread:
**Re: [eigen] Fast QR for 2x2, 3x3**

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