Skip to content

Commit 23172f3

Browse files
Update vector_of_array.jl
1 parent 6f24562 commit 23172f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Based on code from M. Bauman VAtackexchange answer + Gitter discussion
1+
# Based on code from M. Bauman Stackexchange answer + Gitter discussion
22

33
type VectorOfArray{T, N, A} <: AbstractArray{T, N}
44
data::A # A <: AbstractVector{<: AbstractArray{T, N - 1}}
@@ -14,7 +14,6 @@ Base.size(VA::VectorOfArray) = (size(VA.data[1])..., length(VA.data))
1414
#TODO: should we redefine length to be over the VA.data? Currently it is the number of total elements
1515

1616
@inline function Base.getindex{T, N}(VA::VectorOfArray{T, N}, I::Vararg{Int, N})
17-
@boundscheck checkbounds(VA, I...) # is this needed?
1817
VA.data[I[end]][Base.front(I)...]
1918
end
2019
# Linear indexing will be over the container elements, not the individual elements

0 commit comments

Comments
 (0)