Skip to content

Commit ff0d02e

Browse files
authored
Merge pull request #498 from JuliaParallel/jps/less-invalidations
Remove more invalidations
2 parents e16ea92 + d38f42d commit ff0d02e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/lib/domain-blocks.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import Base: ndims, size, getindex
1+
import Base: size, getindex
22

33
struct DomainBlocks{N} <: AbstractArray{ArrayDomain{N}, N}
44
start::NTuple{N, Int}
55
cumlength::Tuple
66
end
77
Base.@deprecate_binding BlockedDomains DomainBlocks
88

9-
ndims(x::DomainBlocks{N}) where {N} = N
109
size(x::DomainBlocks) = map(length, x.cumlength)
1110
function _getindex(x::DomainBlocks{N}, idx::Tuple) where N
1211
starts = map((vec, i) -> i == 0 ? 0 : getindex(vec,i), x.cumlength, map(x->x-1, idx))

0 commit comments

Comments
 (0)