This forum has been archived. All content is frozen. Please use KDE Discuss instead.

orthonormalization in eigen

Tags: None
(comma "," separated)
johnm1019
Registered Member
Posts
46
Karma
0

orthonormalization in eigen

Wed Nov 27, 2013 2:30 pm
Hi, I wanted to orthonormalize some transformation matricies which may become non-trivially non-ortho due to a discretization step. The interwebs suggest Gram-Schmidt orthonormalization but before I implement that I thought I would ask if there is a more efficient/stable/recommended way using already-coded Eigen capabilities.

Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: orthonormalization in eigen  Topic is solved

Wed Nov 27, 2013 2:46 pm
you can also use a QR factorization (Gram-Schmidt orthonormalization is one way to get a QR factorization):
Code: Select all
A_ortho = A.householderQr().householderQ();
johnm1019
Registered Member
Posts
46
Karma
0

Re: orthonormalization in eigen

Wed Nov 27, 2013 3:10 pm
I had a feeling you would have a rockstar answer :)

Thanks


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], Yahoo [Bot]