Skip to content

Commit d1a9cb0

Browse files
committed
Fix simultaneous merge issue between JuliaLang#19724 and JuliaLang#19922.
1 parent 13da0b9 commit d1a9cb0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

base/sparse/higherorderfns.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module HigherOrderFns
55
# This module provides higher order functions specialized for sparse arrays,
66
# particularly map[!]/broadcast[!] for SparseVectors and SparseMatrixCSCs at present.
77
import Base: map, map!, broadcast, broadcast!
8-
import Base.Broadcast: containertype, promote_containertype,
8+
import Base.Broadcast: _containertype, promote_containertype,
99
broadcast_indices, broadcast_c, broadcast_c!
1010

1111
using Base: front, tail, to_shape
@@ -83,7 +83,6 @@ function _noshapecheck_map{Tf,N}(f::Tf, A::SparseVecOrMat, Bs::Vararg{SparseVecO
8383
end
8484
# (3) broadcast[!] entry points
8585
broadcast{Tf}(f::Tf, A::SparseVecOrMat) = _noshapecheck_map(f, A)
86-
broadcast!{Tf}(f::Tf, C::SparseVecOrMat, A::SparseVecOrMat) = map!(f, C, A)
8786
function broadcast!{Tf,N}(f::Tf, C::SparseVecOrMat, A::SparseVecOrMat, Bs::Vararg{SparseVecOrMat,N})
8887
_aresameshape(C, A, Bs...) && return _noshapecheck_map!(f, C, A, Bs...)
8988
Base.Broadcast.check_broadcast_indices(indices(C), A, Bs...)
@@ -843,7 +842,7 @@ end
843842
# broadcast shape promotion for combinations of sparse arrays and other types
844843
broadcast_indices(::Type{AbstractSparseArray}, A) = indices(A)
845844
# broadcast container type promotion for combinations of sparse arrays and other types
846-
containertype{T<:SparseVecOrMat}(::Type{T}) = AbstractSparseArray
845+
_containertype{T<:SparseVecOrMat}(::Type{T}) = AbstractSparseArray
847846
# combinations of sparse arrays with broadcast scalars should yield sparse arrays
848847
promote_containertype(::Type{Any}, ::Type{AbstractSparseArray}) = AbstractSparseArray
849848
promote_containertype(::Type{AbstractSparseArray}, ::Type{Any}) = AbstractSparseArray

0 commit comments

Comments
 (0)