@@ -153,22 +153,22 @@ function preserves_unstored(f, a_dest::AbstractArray, as::AbstractArray...)
153
153
return iszero (f (map (a -> getunstoredindex (a, I), as)... ))
154
154
end
155
155
156
- @interface interface:: AbstractSparseArrayInterface function Base. map! (
157
- f, a_dest:: AbstractArray , as:: AbstractArray...
158
- )
159
- isempty (a_dest) && return a_dest # special case to avoid trying to access empty array
160
- indices = if ! preserves_unstored (f, a_dest, as... )
161
- eachindex (a_dest)
162
- elseif any (a -> a_dest != = a, as)
163
- as = map (a -> Base. unalias (a_dest, a), as)
164
- @interface interface zero! (a_dest)
165
- eachstoredindex (as... )
166
- else
167
- eachstoredindex (a_dest)
168
- end
169
- @interface interface map_indices! (indices, f, a_dest, as... )
170
- return a_dest
171
- end
156
+ # @interface interface::AbstractSparseArrayInterface function Base.map!(
157
+ # f, a_dest::AbstractArray, as::AbstractArray...
158
+ # )
159
+ # isempty(a_dest) && return a_dest # special case to avoid trying to access empty array
160
+ # indices = if !preserves_unstored(f, a_dest, as...)
161
+ # eachindex(a_dest)
162
+ # elseif any(a -> a_dest !== a, as)
163
+ # as = map(a -> Base.unalias(a_dest, a), as)
164
+ # @interface interface zero!(a_dest)
165
+ # eachstoredindex(as...)
166
+ # else
167
+ # eachstoredindex(a_dest)
168
+ # end
169
+ # @interface interface map_indices!(indices, f, a_dest, as...)
170
+ # return a_dest
171
+ # end
172
172
173
173
# `f::typeof(norm)`, `op::typeof(max)` used by `norm`.
174
174
function reduce_init (f, op, as... )
0 commit comments