Skip to content

Commit 55a0a23

Browse files
committedMay 30, 2015
Support CartesianIndex indexing
1 parent 4166845 commit 55a0a23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/b-splines/indexing.jl

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ end
5151
getindex_impl(itp)
5252
end
5353

54+
@generated function getindex{T,N}(itp::BSplineInterpolation{T,N}, index::CartesianIndex{N})
55+
:(getindex(itp, $(Base.IteratorsMD.cartindex_exprs((index,), (:index,))...)))
56+
end
57+
5458
offsetsym(off, d) = off == -1 ? symbol(string("ixm_", d)) :
5559
off == 0 ? symbol(string("ix_", d)) :
5660
off == 1 ? symbol(string("ixp_", d)) :

0 commit comments

Comments
 (0)