Created
March 6, 2019 16:47
-
-
Save maartenvd/21a3d0acc6d7d982c8a2b46b9f94963a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Strided | |
function fun1() | |
A = randn(40,40,40,40); | |
B = randn(40,40,40,40); | |
function fun2() | |
as=StridedView(A); | |
bs=StridedView(B); | |
permutedims!(bs,as,(4,3,2,1)); | |
end | |
return fun2() | |
end | |
@time fun1() | |
@time fun1() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment