Skip to content

Document which operations are required for a SparseArray eltype #308

Open
@LilithHafner

Description

@LilithHafner

getindex on structural zeros uses zero(T).
setindex!, dropzeros!, and == use iszero(T).

It would be nice to know which operations are required for full functionality for SparseArrays, and what subset of that functionality is available if some or all of those operations are missing. For example, do I need to define zero or iszero on my custom type T to support sparse matrix multiplication wth eltype T?

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