Skip to content

Commit

Permalink
Check against precise Julia versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 committed Jul 29, 2019
1 parent d225bd8 commit 5a45178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LinearAlgebra.logdet(B::BlockDiagonal) = sum(logdet, blocks(B))
LinearAlgebra.tr(B::BlockDiagonal) = sum(tr, blocks(B))

# Real matrices can have Complex eigenvalues; `eigvals` is not type stable.
if VERSION < v"1.2.0-"
if VERSION < v"1.2.0-DEV.275"
# No convention for sorting eigenvalues in earlier versions of Julia.
function LinearAlgebra.eigvals(B::BlockDiagonal; kwargs...)
return mapreduce(b -> eigvals(b; kwargs...), vcat, blocks(B))
Expand All @@ -25,7 +25,7 @@ else
end
end

if VERSION < v"1.3.0-"
if VERSION < v"1.3.0-DEV.426"
# This is copy of the definition for LinearAlgebra, only used to workaround
# https://github.com/JuliaLang/julia/issues/31843 which was fixed in Julia v1.3
function LinearAlgebra.eigmax(B::BlockDiagonal; kwargs...)
Expand Down

0 comments on commit 5a45178

Please sign in to comment.