Skip to content

Commit

Permalink
Clarify the role of pivoting in QR factorization (#29976)
Browse files Browse the repository at this point in the history
* Clarify the role of pivoting in QR factorization

Ref: https://discourse.julialang.org/t/left-matrix-division-with-singular-matrix/15503

* Update qr.jl

(cherry picked from commit e5e6b64)
  • Loading branch information
mzaffalon authored and KristofferC committed Feb 20, 2020
1 parent 5c871de commit 5df9777
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/LinearAlgebra/src/qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ Iterating the decomposition produces the components `Q`, `R`, and if extant `p`.
The following functions are available for the `QR` objects: [`inv`](@ref), [`size`](@ref),
and [`\\`](@ref). When `A` is rectangular, `\\` will return a least squares
solution and if the solution is not unique, the one with smallest norm is returned.
solution and if the solution is not unique, the one with smallest norm is returned. When
`A` is not full rank, factorization with (column) pivoting is required to obtain a minimum
norm solution.
Multiplication with respect to either full/square or non-full/square `Q` is allowed, i.e. both `F.Q*F.R`
and `F.Q*A` are supported. A `Q` matrix can be converted into a regular matrix with
Expand Down

0 comments on commit 5df9777

Please sign in to comment.