Skip to content

Commit

Permalink
LAPACK: return union of tuples in gees and trsen (JuliaLang#55353)
Browse files Browse the repository at this point in the history
This simplifies the return type from a `Tuple` with a `Union` field to a
`Union` of `Tuple`s.
  • Loading branch information
jishnub authored Aug 6, 2024
1 parent f94fe63 commit 308cd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6452,7 +6452,7 @@ for (gees, gges, gges3, elty) in
resize!(work, lwork)
end
end
A, vs, iszero(wi) ? wr : complex.(wr, wi)
iszero(wi) ? (A, vs, wr) : (A, vs, complex.(wr, wi))
end

# * .. Scalar Arguments ..
Expand Down Expand Up @@ -6833,7 +6833,7 @@ for (trexc, trsen, tgsen, elty) in
resize!(iwork, liwork)
end
end
T, Q, iszero(wi) ? wr : complex.(wr, wi), s[], sep[]
iszero(wi) ? (T, Q, wr, s[], sep[]) : (T, Q, complex.(wr, wi), s[], sep[])
end
trsen!(select::AbstractVector{BlasInt}, T::AbstractMatrix{$elty}, Q::AbstractMatrix{$elty}) =
trsen!('N', 'V', select, T, Q)
Expand Down

0 comments on commit 308cd7b

Please sign in to comment.