[ENHANCEMENT] Define an SparseArraysBase.issparse
trait function and associated trait
#7
Labels
enhancement
New feature or request
Define an
SparseArraysBase.issparse
trait function with an associated type traitSparseArraysBase.IsSparse
, in the style ofSimpleTraits.jl
.We could use
SparseArraysBase.issparse(a) = interface(a) isa AbstractSparseArrayInterface
as a default definition.Possibly we can overload/repurpose
Base.issparse
for this but I don't know how general that is meant to be, for example:The text was updated successfully, but these errors were encountered: