- Indexing out of bounds now gives a
BoundsError
(instead of returning the default value forShiftedArray
or the circularly shifted value forCircShiftedArray
). lag
andlead
are no longer exported (but still public API).- Calling
ShiftedArray(v::ShiftedArray, n)
orCircShiftedArray(v::CircShiftedArray, n)
does not nest but rather combines the shifts additively.
- Removed special
reduce, reduce_vec, mapreduce, mapreduce_vec
methods. - Removed
to_array, to_offsetarray
methods.
- Support for OffsetArrays v0.11.
- Support for RecursiveArrayTools v1.
- Support for Julia 1.
- Now conversion of
AbstractArray{<:ShiftedArray}
toArray
orOffsetArray
is done viaShiftedArray.to_array
andShiftedArray.to_offsetarray
respectively rather thanBase.convert
to avoid type piracy.
- Allow custom default value with
default
keyword. - Allow filtering in reduce-like functions with
filter
keyword.
- Removed the
dim
keyword: instead of e.g.lag(v, 3, dim = 2)
writelag(v, (0, 3))
(in agreement withcircshift
from Julia Base) - Changed direction of shifting for
ShiftedArray
andCircShiftedArray
constructors. For exampleCircShiftedArray(v, n)
with a positiven
shifts to the right (in agreement withcircshift(v, n)
from Julia Base).
CircShiftedArray
type to shift arrays circularly.- A lazy version of
circshift
:ShiftedArray.circshift
.