Skip to content

Commit 30eed3a

Browse files
committed
Prefer transpose for real cases to match wrapper_char
1 parent 625bc62 commit 30eed3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adjtrans.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ wrapperop(::Adjoint) = adjoint
328328
wrapperop(::Transpose) = transpose
329329

330330
# equivalent to wrapperop, but treats real transposes and adjoints identically
331-
# this might help reduce compilation times
331+
# this helps reduce compilation latencies, and also matches the behavior of `wrapper_char`
332332
_wrapperop(x) = wrapperop(x)
333-
_wrapperop(::Transpose{<:Real}) = adjoint
333+
_wrapperop(::Adjoint{<:Real}) = transpose
334334

335335
# the following fallbacks can be removed if Adjoint/Transpose are restricted to AbstractVecOrMat
336336
size(A::AdjOrTrans) = reverse(size(A.parent))

0 commit comments

Comments
 (0)