Post Reply 
Orthonormal Basis from QR Decomposition
06-06-2020, 03:39 PM (This post was last modified: 06-06-2020 04:24 PM by victorvbc.)
Post: #1
Orthonormal Basis from QR Decomposition
Hello everyone,

I'd like to ask for some help with a problem.

I want to get an orthonormal basis from the matrix [[1,-1,1],[3,-1,-1],[1,1,-3]], which has one linearly dependent column, so I use the QR decomposition to factor the matrix into orthogonal and upper trapezoidal parts. This results in the following Q and R matrices:


Unfortunately the Q matrix is singular, so I can't really use it. I know a decomposition with a complete orthogonal matrix is possible, from matlab:


So, is there a way I can get this to work on the Prime?

Edit: I've found a solution, It works if I use the uppercase QR() function.

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Orthonormal Basis from QR Decomposition - victorvbc - 06-06-2020 03:39 PM

User(s) browsing this thread: 1 Guest(s)