Skip to content

Commit

Permalink
Add brief comments explaining the qr situation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed May 29, 2018
1 parent 2447d85 commit fd7a2ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1818,6 +1818,8 @@ if !isdefined(Base, :selectdim) # 0.7.0-DEV.3976
end

if VERSION < v"0.7.0-DEV.2337"
# qr doesn't take the full keyword anymore since 0.7.0-DEV.5211; we still support it
# here to avoid unneccesary breakage
if VERSION < v"0.7.0-DEV.843"
qr(A::Union{Number,AbstractMatrix}, pivot::Union{Val{false},Val{true}}=Val(false); full=false) =
Base.qr(A, typeof(pivot), thin=!full)
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,9 @@ end
# 0.7.0-DEV.843 / 0.7.0-DEV.2337
let A = [1 2; 1 2; 1 2]
if VERSION < v"0.7.0-DEV.5211"
# the full keyword was only temporarily available in Base, so these methods don't
# work on 0.7 anymore, but we test them for the time being to avoid accidentally
# anyone's breaking code
f = Compat.qr(A, Val(false), full=false)
@test f == Compat.qr(A, Val(false))
@test length(f) == 2
Expand Down

0 comments on commit fd7a2ad

Please sign in to comment.