I need to calculate orthogonal basis of a row vector. I plan to implement it on hardware using RT coding.
Whats best algorithm to calculate SVD for say $1*8$ vector?
I implemented:
- QR decomposition block
- SVD of square matrix
Can I use on or both of these resources to get $8*7$ size, orthonormal basis using SVD?
Here's how you can construct a suitable orthonormal basis using a Householder transformation: let $w_1$ denote the vector (a column-vector) in question, which is supposed to be the first vector in our orthonormal basis. Suppose that $\|w_1\| = 1$. Let $$ v = w_1 - e_1 = w_1 - (1,0,\dots,0) $$ Take your matrix to be $$ W = I - 2\frac{vv^\dagger}{v^\dagger v} $$ $W$ will necessarily be a unitary matrix whose first column is $w_1$. That is, the columns of $W$ form an orthonormal basis.