Skip to content

qrupdate

linear-algebra · scripts/linear-algebra/qrupdate.m

: [Q1, R1] = qrupdate (Q, R, u, v)

Update a QR factorization after a rank-1 change of the factored matrix.

The inputs Q and R are the factors of some matrix A = Q*R, as produced by qr. Return matrices Q1, with orthonormal columns, and R1, upper trapezoidal, such that

Q1 * R1 = A + u * v'

where u is a column vector with as many elements as A has rows and v is a column vector with as many elements as A has columns. For complex inputs, v' denotes the conjugate transpose of v.