-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,10 @@ end | |
_getindex(A, I::(Union(Int,AbstractVector)...)) = | ||
_getindex!(similar(A, index_shape(I...)), A, I...) | ||
|
||
@nsplat N getindex(A::Array, I::NTuple{N,UnitRange{Int}}...) = slice(A, I...) | ||
@nsplat N function getindex(A::Array, I::NTuple{N,UnitRange{Int}}...) | ||
checkbounds(A, I...) | ||
slice(A, I...) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andreasnoack
Author
Member
|
||
end | ||
|
||
@nsplat N function getindex(A::Array, I::NTuple{N,Union(Real,AbstractVector)}...) | ||
checkbounds(A, I...) | ||
|
1 comment
on commit ae4a176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakebolewski I think I'm almost through with the arrayviews-from-getindex transition, but I cannot fix the test fail in socket.jl
. Could you please take a look?
I'm wondering if a wrong method is being called. Maybe because of inlining since the backtrace is also difficult to use. The slow version of iteration is only defined in multidimensional.jl
so maybe that can explain it.
Personally, I'm pleased to see the
slice
here.