Skip to content

Commit

Permalink
Add a comment about not returning a stridedview
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Oct 25, 2023
1 parent 619b1e8 commit 0e52496
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NDTensors/src/array/permutedims.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NDTensors.permutedims
function permutedims(::Type{<:Array}, M, perm)
return @strided A = Base.permutedims(M, perm)
## Creating Mperm here to evaluate the permutation and
## avoid returning a Stridedview
@strided Mperm = Base.permutedims(M, perm)
return Mperm
end

# NDTensors.permutedims!
Expand Down

0 comments on commit 0e52496

Please sign in to comment.