@@ -163,7 +163,7 @@ function squeeze(A::AbstractArray, dims)
163
163
reshape (A, d)
164
164
end
165
165
166
- function copy! (dest:: StoredArray , src)
166
+ function copy! (dest:: AbstractArray , src)
167
167
i = 1
168
168
for x in src
169
169
dest[i] = x
174
174
175
175
# copy with minimal requirements on src
176
176
# if src is not an AbstractArray, moving to the offset might be O(n)
177
- function copy! (dest:: StoredArray , doffs:: Integer , src, soffs:: Integer = 1 )
177
+ function copy! (dest:: AbstractArray , doffs:: Integer , src, soffs:: Integer = 1 )
178
178
st = start (src)
179
179
for j = 1 : (soffs- 1 )
180
180
_, st = next (src, st)
@@ -191,13 +191,13 @@ end
191
191
# NOTE: this is to avoid ambiguity with the deprecation of
192
192
# copy!(dest::AbstractArray, src, doffs::Integer)
193
193
# Remove this when that deprecation is removed.
194
- function copy! (dest:: StoredArray , doffs:: Integer , src:: Integer )
194
+ function copy! (dest:: AbstractArray , doffs:: Integer , src:: Integer )
195
195
dest[doffs] = src
196
196
return dest
197
197
end
198
198
199
199
# this method must be separate from the above since src might not have a length
200
- function copy! (dest:: StoredArray , doffs:: Integer , src, soffs:: Integer , n:: Integer )
200
+ function copy! (dest:: AbstractArray , doffs:: Integer , src, soffs:: Integer , n:: Integer )
201
201
n == 0 && return dest
202
202
st = start (src)
203
203
for j = 1 : (soffs- 1 )
@@ -212,7 +212,7 @@ function copy!(dest::StoredArray, doffs::Integer, src, soffs::Integer, n::Intege
212
212
end
213
213
214
214
# if src is an AbstractArray and a source offset is passed, use indexing
215
- function copy! (dest:: StoredArray , doffs:: Integer , src:: AbstractArray , soffs:: Integer , n:: Integer = length (src))
215
+ function copy! (dest:: AbstractArray , doffs:: Integer , src:: AbstractArray , soffs:: Integer , n:: Integer = length (src))
216
216
for i = 0 : (n- 1 )
217
217
dest[doffs+ i] = src[soffs+ i]
218
218
end
@@ -248,9 +248,9 @@ for (f,t) in ((:char, Char),
248
248
(:uint128 ,Uint128))
249
249
@eval begin
250
250
($ f)(x:: AbstractArray{$t} ) = x
251
- ($ f)(x:: StoredArray {$t} ) = x
251
+ ($ f)(x:: AbstractArray {$t} ) = x
252
252
253
- function ($ f)(x:: StoredArray )
253
+ function ($ f)(x:: AbstractArray )
254
254
y = similar (x,$ t)
255
255
i = 1
256
256
for e in x
@@ -266,9 +266,9 @@ for (f,t) in ((:integer, Integer),
266
266
(:unsigned , Unsigned))
267
267
@eval begin
268
268
($ f){T<: $t }(x:: AbstractArray{T} ) = x
269
- ($ f){T<: $t }(x:: StoredArray {T} ) = x
269
+ ($ f){T<: $t }(x:: AbstractArray {T} ) = x
270
270
271
- function ($ f)(x:: StoredArray )
271
+ function ($ f)(x:: AbstractArray )
272
272
y = similar (x,typeof (($ f)(one (eltype (x)))))
273
273
i = 1
274
274
for e in x
@@ -1228,7 +1228,7 @@ end
1228
1228
1229
1229
1230
1230
# # 1 argument
1231
- function map_to! (f:: Callable , first, dest:: StoredArray , A:: AbstractArray )
1231
+ function map_to! (f:: Callable , first, dest:: AbstractArray , A:: AbstractArray )
1232
1232
dest[1 ] = first
1233
1233
for i= 2 : length (A)
1234
1234
dest[i] = f (A[i])
@@ -1244,7 +1244,7 @@ function map(f::Callable, A::AbstractArray)
1244
1244
end
1245
1245
1246
1246
# # 2 argument
1247
- function map_to! (f:: Callable , first, dest:: StoredArray , A:: AbstractArray , B:: AbstractArray )
1247
+ function map_to! (f:: Callable , first, dest:: AbstractArray , A:: AbstractArray , B:: AbstractArray )
1248
1248
dest[1 ] = first
1249
1249
for i= 2 : length (A)
1250
1250
dest[i] = f (A[i], B[i])
@@ -1263,7 +1263,7 @@ function map(f::Callable, A::AbstractArray, B::AbstractArray)
1263
1263
end
1264
1264
1265
1265
# # N argument
1266
- function map_to! (f:: Callable , first, dest:: StoredArray , As:: AbstractArray... )
1266
+ function map_to! (f:: Callable , first, dest:: AbstractArray , As:: AbstractArray... )
1267
1267
n = length (As[1 ])
1268
1268
i = 1
1269
1269
ith = a-> a[i]
0 commit comments