Skip to content

argmin / findmin incorrect behaviour on SparseVector on 1.8 #44978

@matbesancon

Description

@matbesancon

This behaviour is incorrect, I'm not sure there is documentation on which case would produce nothing for findmin

On 1.8.0-beta3

julia> v = zeros(3)

julia> argmin(v)
1

julia> v[1] = 2

julia> argmin(v) 
2

# incorrect on sparse
julia> v = spzeros(3)
3-element SparseVector{Float64, Int64} with 0 stored entries

julia> v[1] = 2
2

julia> argmin(v) === nothing
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous versionsparseSparse arrays

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions