@@ -129,8 +129,10 @@ OffsetVector{T,AA<:AbstractArray} = OffsetArray{T,1,AA}
129
129
OffsetArray (A:: AbstractArray{T,N} , offsets:: NTuple{N,Int} ) where {T,N} = OffsetArray {T,N,typeof(A)} (A, offsets)
130
130
OffsetArray (A:: AbstractArray{T,N} , offsets:: Vararg{Int,N} ) where {T,N} = OffsetArray (A, offsets)
131
131
132
- OffsetArray {T,N} (inds:: Indices{N} ) where {T,N} = OffsetArray {T,N,Array{T,N}} (Array {T,N} (uninitialized, map (length, inds)), map (indsoffset, inds))
133
- OffsetArray {T} (inds:: Indices{N} ) where {T,N} = OffsetArray {T,N} (inds)
132
+ OffsetArray {T,N} (:: Uninitialized , inds:: Indices{N} ) where {T,N} =
133
+ OffsetArray {T,N,Array{T,N}} (Array {T,N} (uninitialized, map (length, inds)), map (indsoffset, inds))
134
+ OffsetArray {T} (:: Uninitialized , inds:: Indices{N} ) where {T,N} =
135
+ OffsetArray {T,N} (uninitialized, inds)
134
136
135
137
Base. IndexStyle (:: Type{T} ) where {T<: OffsetArray } = Base. IndexStyle (parenttype (T))
136
138
parenttype (:: Type{OffsetArray{T,N,AA}} ) where {T,N,AA} = AA
0 commit comments