Skip to content

Commit 3a9d7eb

Browse files
committed
Simplify
1 parent add6826 commit 3a9d7eb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lazyarrays.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,7 @@ end
859859

860860
function copy_permuteddims_mul(a::PermutedDimsArray{<:Any, 2, perm}) where {perm}
861861
perm == (1, 2) && return copy(parent(a))
862-
perm == (2, 1) && return copy(transpose(parent(a)))
863-
throw(ArgumentError("Unsupported permutation $perm"))
862+
return copy(transpose(parent(a)))
864863
end
865864

866865
macro mularray_base(MulArray, AbstractArray = :AbstractArray)

0 commit comments

Comments
 (0)