Skip to content

Commit 59637c3

Browse files
KristofferCantoine-levitt
authored andcommitted
Revert "add 'ᵀ postfix operator for transpose (JuliaLang#38062)" (JuliaLang#40075)
This reverts commit 665279a.
1 parent 50ba0c7 commit 59637c3

File tree

5 files changed

+0
-18
lines changed

5 files changed

+0
-18
lines changed

HISTORY.md

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ New library features
113113
inserting or consuming the first dimension depending on the ratio of `sizeof(T)` and `sizeof(S)`.
114114
* New `append!(vector, collections...)` and `prepend!(vector, collections...)` methods accept multiple
115115
collections to be appended or prepended ([#36227]).
116-
* The postfix operator `'ᵀ` can now be used as an alias for `transpose` ([#38062]).
117116
* `keys(io::IO)` has been added, which returns all keys of `io` if `io` is an `IOContext` and an empty
118117
`Base.KeySet` otherwise ([#37753]).
119118
* `count` now accepts an optional `init` argument to control the accumulation type ([#37461]).

base/exports.jl

-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ export
467467
# linear algebra
468468
var"'", # to enable syntax a' for adjoint
469469
adjoint,
470-
var"'ᵀ",
471470
transpose,
472471
kron,
473472
kron!,

base/operators.jl

-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ end
624624
function kron! end
625625

626626
const var"'" = adjoint
627-
const var"'ᵀ" = transpose
628627

629628
"""
630629
\\(x, y)

stdlib/LinearAlgebra/src/adjtrans.jl

-12
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ julia> x'x
136136
adjoint(A::AbstractVecOrMat) = Adjoint(A)
137137

138138
"""
139-
A'ᵀ
140139
transpose(A)
141140
142141
Lazy transpose. Mutating the returned object should appropriately mutate `A`. Often,
@@ -146,9 +145,6 @@ that this operation is recursive.
146145
This operation is intended for linear algebra usage - for general data manipulation see
147146
[`permutedims`](@ref Base.permutedims), which is non-recursive.
148147
149-
!!! compat "Julia 1.6"
150-
The postfix operator `'ᵀ` requires Julia 1.6.
151-
152148
# Examples
153149
```jldoctest
154150
julia> A = [3+2im 9+2im; 8+7im 4+6im]
@@ -160,14 +156,6 @@ julia> transpose(A)
160156
2×2 transpose(::Matrix{Complex{Int64}}) with eltype Complex{Int64}:
161157
3+2im 8+7im
162158
9+2im 4+6im
163-
164-
julia> x = [3, 4im]
165-
2-element Vector{Complex{Int64}}:
166-
3 + 0im
167-
0 + 4im
168-
169-
julia> x'ᵀx
170-
-7 + 0im
171159
```
172160
"""
173161
transpose(A::AbstractVecOrMat) = Transpose(A)

test/operators.jl

-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,4 @@ end
280280
@test (0)(-2:2)
281281
end
282282

283-
a = rand(3, 3)
284-
@test transpose(a) === a'
285-
286283
@test [Base.afoldl(+, 1:i...) for i = 1:40] == [i * (i + 1) ÷ 2 for i = 1:40]

0 commit comments

Comments
 (0)