Skip to content

Commit ff564e8

Browse files
committed
avoid error when x is nothing
1 parent 3f0a5e9 commit ff564e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArrayInterface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ismutable(::Type{<:Number}) = false
2525
2626
determine whether `findstructralnz` accepts the parameter `x`
2727
"""
28+
has_sparsestruct(x)=false
2829
has_sparsestruct(x::AbstractArray)=false
2930
has_sparsestruct(x::SparseMatrixCSC)=true
3031
has_sparsestruct(x::Diagonal)=true

0 commit comments

Comments
 (0)