Skip to content

Commit

Permalink
Remove Adjoint|Transpose(::UniformScaling) definition (JuliaLang#27479)
Browse files Browse the repository at this point in the history
They always should add an extra wrapping, instead of eagerly do
adjoint/transpose.
See JuliaLang#25461
  • Loading branch information
tkf authored and haampie committed Jun 9, 2018
1 parent c7a034f commit e03619a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stdlib/LinearAlgebra/src/uniformscaling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ copy(J::UniformScaling) = UniformScaling(J.λ)
conj(J::UniformScaling) = UniformScaling(conj(J.λ))

transpose(J::UniformScaling) = J
Transpose(S::UniformScaling) = transpose(S)
adjoint(J::UniformScaling) = UniformScaling(conj(J.λ))
Adjoint(S::UniformScaling) = adjoint(S)

one(::Type{UniformScaling{T}}) where {T} = UniformScaling(one(T))
one(J::UniformScaling{T}) where {T} = one(UniformScaling{T})
Expand Down

0 comments on commit e03619a

Please sign in to comment.