Skip to content

broadcast makes sparse matrix full #11474

Closed
@mauro3

Description

@mauro3
julia> sp = sprand(3,3,0.1)
3x3 sparse matrix with 1 Float64 entries:
        [2, 2]  =  0.885289

julia> broadcast(*, [1,1,1], sp)
3x3 Array{Float64,2}:
 0.0  0.0       0.0
 0.0  0.885289  0.0
 0.0  0.0       0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectionsparseSparse arrays

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions