Skip to content

Commit 3f36ae2

Browse files
committed
https://github.com/SciML/SciMLOperators.jl/issues/107
1 parent 1453743 commit 3f36ae2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/SciMLOperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Base: +, -, *, /, \, ∘, ==, conj, exp, kron
1717
import Base: iszero, inv, adjoint, transpose, size, convert
1818
import LinearAlgebra: mul!, ldiv!, lmul!, rmul!, factorize
1919
import LinearAlgebra: Matrix, Diagonal
20-
import SparseArrays: sparse
20+
import SparseArrays: sparse, issparse
2121

2222
"""
2323
$(TYPEDEF)

src/matrix.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ isconstant(L::MatrixOperator) = L.update_func == DEFAULT_UPDATE_FUNC
5252
Base.iszero(L::MatrixOperator) = iszero(L.A)
5353

5454
SparseArrays.sparse(L::MatrixOperator) = sparse(L.A)
55+
SparseArrays.issparse(L::MatrixOperator) = issparse(L.A)
5556

5657
# TODO - add tests for MatrixOperator indexing
5758
# propagate_inbounds here for the getindex fallback

0 commit comments

Comments
 (0)