File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,31 @@ Transpose(A::Transpose) = A.parent
5454
5555# wrapping lowercase quasi-constructors
5656adjoint (A:: AbstractVecOrMat ) = Adjoint (A)
57+ """
58+ transpose(A::AbstractMatrix)
59+
60+ Lazy matrix transpose. Mutating the returned object should appropriately mutate `A`. Often,
61+ but not always, yields `Transpose(A)`, where `Transpose` is a lazy transpose wrapper. Note
62+ that this operation is recursive.
63+
64+ This operation is intended for linear algebra usage - for general data manipulation see
65+ [`permutedims`](@ref), which is non-recursive.
66+
67+ # Examples
68+ ```jldoctest
69+ julia> A = [1 2 3; 4 5 6; 7 8 9]
70+ 3×3 Array{Int64,2}:
71+ 1 2 3
72+ 4 5 6
73+ 7 8 9
74+
75+ julia> transpose(A)
76+ 3×3 Transpose{Int64,Array{Int64,2}}:
77+ 1 4 7
78+ 2 5 8
79+ 3 6 9
80+ ```
81+ """
5782transpose (A:: AbstractVecOrMat ) = Transpose (A)
5883# unwrapping lowercase quasi-constructors
5984adjoint (A:: Adjoint ) = A. parent
You can’t perform that action at this time.
0 commit comments