Skip to content

Commit

Permalink
override length for CachedArray
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Apr 29, 2019
1 parent 1c63bd0 commit 4e717bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ convert(::Type{AbstractArray{T}}, S::CachedArray) where {T} =


size(A::CachedArray) = size(A.array)
length(A::CachedArray) = length(A.array)

@propagate_inbounds function Base.getindex(B::CachedArray{T,N}, kj::Vararg{Integer,N}) where {T,N}
@boundscheck checkbounds(Bool, B, kj...)
Expand Down

0 comments on commit 4e717bd

Please sign in to comment.