1
$\begingroup$

Tried >[Q,R] = qr(a)

R is upper triangular part of >qr(a) as qr(a)'s lower triangular part has value but how to calculate the >qr(a).

Would like to do this in F# but Sho library's Q, R are different from matlab, hope there is a way to fix it.

Just type qr(a) but not [Q,R] = qr(a), then you will see qr(a)'s direct result

  • 0
    I can't check since the computer I am using doesn't have MATLAB, but the usual Householder algorithm for computing the$QR$decomposition stores the Householder vectors used for constructing the orthogonal factor in the lower triangular portion. I don't know if MATLAB maintains that format, but I don't quite understand why you need the Householder vectors when @Sivaram already showed you how to obtain the explicit orthogonal factor.2012-03-19

0 Answers 0