Skip to content

Commit b4b2328

Browse files
committed
disable previous implementation
1 parent 2dec436 commit b4b2328

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/abstractsparsearrayinterface.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,22 @@ function preserves_unstored(f, a_dest::AbstractArray, as::AbstractArray...)
153153
return iszero(f(map(a -> getunstoredindex(a, I), as)...))
154154
end
155155

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
172172

173173
# `f::typeof(norm)`, `op::typeof(max)` used by `norm`.
174174
function reduce_init(f, op, as...)

0 commit comments

Comments
 (0)