Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Feb 12, 2022
1 parent 487d216 commit 154f387
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tangent_types/abstract_zero.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ LinearAlgebra.adjoint(z::AbstractZero, ind...) = z
LinearAlgebra.transpose(z::AbstractZero, ind...) = z

for T in (
:UniformScaling, :Adjoint, :Transpose, :Diagonal
:UniformScaling, :Adjoint, :Transpose, :Diagonal,
:UpperTriangular, :LowerTriangular, :UpperHessenberg,
:UnitUpperTriangular, :UnitLowerTriangular,
)
VERSION < v"1.4" && f == :UpperHessenberg && continue # not defined in 1.0
@eval (::Type{<:LinearAlgebra.$T})(z::AbstractZero) = z
VERSION < v"1.4" && T == :UpperHessenberg && continue # not defined in 1.0
@eval LinearAlgebra.$T(z::AbstractZero) = z
end

LinearAlgebra.Symmetric(z::AbstractZero, uplo=:U) = z
Expand Down

0 comments on commit 154f387

Please sign in to comment.