Skip to content

Instantly share code, notes, and snippets.

@JKrehl
JKrehl / circshift.jl
Last active Mar 3, 2017
an in-place circshift! implementation
View circshift.jl
using Base.Cartesian
function _bifurcated_loop(i, ex, reverse, splits=:splits, half=reverse)
if i == 0
ex
else
ix = Symbol("x_", i)
iy = Symbol("y_", i)
isize = :(size(dest, $i))