Skip to content

Instantly share code, notes, and snippets.

@maartenvd
Created March 6, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maartenvd/21a3d0acc6d7d982c8a2b46b9f94963a to your computer and use it in GitHub Desktop.
Save maartenvd/21a3d0acc6d7d982c8a2b46b9f94963a to your computer and use it in GitHub Desktop.
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