Skip to content

Commit

Permalink
workaround nopivot issue in v1.7-beta2+
Browse files Browse the repository at this point in the history
reintroduce nightly in CI
  • Loading branch information
pablosanjose committed Jul 1, 2021
1 parent 9b9fb61 commit a366bb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
version:
- '1.5'
- '1.6'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
Expand Down
6 changes: 5 additions & 1 deletion src/tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ end
pinverse(::SMatrix{E,0,T}) where {E,T} = SMatrix{0,E,T}() # BUG: workaround StaticArrays bug SMatrix{E,0,T}()'

function pinverse(m::SMatrix)
qrm = qr(m)
@static if VERSION >= v"1.7.0-beta2"
qrm = qr(m, NoPivot())
else
qrm = qr(m)
end
return inv(qrm.R) * qrm.Q'
end

Expand Down

0 comments on commit a366bb9

Please sign in to comment.