Skip to content

Commit 8448050

Browse files
committed
Revert "add 'ᵀ postfix operator for transpose (#38062)" (#40075)
This reverts commit 665279a. (cherry picked from commit 7838e09)
1 parent 981d573 commit 8448050

File tree

5 files changed

+0
-18
lines changed

5 files changed

+0
-18
lines changed

NEWS.md

-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ New library features
114114
inserting or consuming the first dimension depending on the ratio of `sizeof(T)` and `sizeof(S)`.
115115
* New `append!(vector, collections...)` and `prepend!(vector, collections...)` methods accept multiple
116116
collections to be appended or prepended ([#36227]).
117-
* The postfix operator `'ᵀ` can now be used as an alias for `transpose` ([#38062]).
118117
* `keys(io::IO)` has been added, which returns all keys of `io` if `io` is an `IOContext` and an empty
119118
`Base.KeySet` otherwise ([#37753]).
120119
* `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
@@ -567,7 +567,6 @@ end
567567
function kron! end
568568

569569
const var"'" = adjoint
570-
const var"'ᵀ" = transpose
571570

572571
"""
573572
\\(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
@@ -253,7 +253,4 @@ end
253253
@test (0)(-2:2)
254254
end
255255

256-
a = rand(3, 3)
257-
@test transpose(a) === a'
258-
259256
@test [Base.afoldl(+, 1:i...) for i = 1:40] == [i * (i + 1) ÷ 2 for i = 1:40]

0 commit comments

Comments
 (0)