w = v + ||v|| e1 w = w/||v|| Q = Id - 2/||w||^2 w w*b) Build a random 6x6 matrix. Extract the first column and build Q using your function. Compute and print QA. Explain what your matrix Q does.
pre-assign R=A and Q=Id for each column i * compute Qi using your Q function * zero the column of R using Qi * accumulate the effect of Qi in Q return R and Q
U=A Do p times Compute the QR Factorization of U update U by reversing the order of the product i.e. U = R.Q return U