Skip to content

spzeros(T, n) allocates #386

Open
Open
@dpinol

Description

@dpinol

According to documentation:

spzeros([type,]m[,n])
  .... No storage will be allocated for nonzero values during construction

However, it does allocate:

function spallo(n)
           for i in 1:n
               spzeros(Int, 10)
           end
 end
@allocated spallo(10)
1280

julia> @allocated spallo(100)
12800

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions