Closed ParadaCarleton closed 2 years ago
adjoint
and transpose
are applied recursively, and tuples do not have adjoints or transposes, so this error is the correct behavior.
If you do not want to apply the operation recursively, use permutedims
instead.
julia> z = [(1, 2), (3, 4), (5, 6)]
3-element Vector{Tuple{Int64, Int64}}:
(1, 2)
(3, 4)
(5, 6)
julia> permutedims(z)
1×3 Matrix{Tuple{Int64, Int64}}:
(1, 2) (3, 4) (5, 6)
adjoint
andtranspose
are applied recursively, and tuples do not have adjoints or transposes, so this error is the correct behavior.If you do not want to apply the operation recursively, use
permutedims
instead.julia> z = [(1, 2), (3, 4), (5, 6)] 3-element Vector{Tuple{Int64, Int64}}: (1, 2) (3, 4) (5, 6) julia> permutedims(z) 1×3 Matrix{Tuple{Int64, Int64}}: (1, 2) (3, 4) (5, 6)
I see... the error message confused me and made me think the bug was just a display bug. Thanks!