It slices, it dices, it splices!
Version 0.4 has significant changes:
@cast @avx A[i,j] := B[i⊗j] (i ∈ 1:3)
instead of @cast A[i,j] := B[i⊗j] i:3, axv
(using LoopVectorization.jl for the broadcast, and supplying the range of i
).@cast _[i] := ...
rather than omitting it entirely.@cast A[i,k] := B[i,J[k]]
and by a range @cast C[i] := f(D[1:3, i])
will no longer work.assert
did this.@cast A[i,k] := log(B[k][i]) lazy=false
(with a new keyword option) to glue into an Array
before broadcasting.PermutedDimsArray
. This isn't always faster, though, and can be disabled by lazy=false
.New features in 0.4:
@cast A[i,j] = i+j
translates to A .= axes(A,1) .+ axes(A,2)'
? :
can appear on the right, and will be broadcast correctly.repeat
by broadcasting over indices not appearing on the right, such as @cast r[i,(k,j)] = m[i,j]
Closed issues:
Merged pull requests:
OffsetArray
s better, even in reshape
(#39) (@mcabbott)Closed issues:
Merged pull requests:
And, these are really for version 0.4, not tagged yet: