Skip to content

Commit 00dbee5

Browse files
fix: implement is_array_of_symbolics for SparseMatrixCSC
1 parent 4546474 commit 00dbee5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,10 @@ function is_array_of_symbolics(x)
11861186
any(y -> symbolic_type(y) != NotSymbolic() || is_array_of_symbolics(y), x)
11871187
end
11881188

1189+
function is_array_of_symbolics(x::SparseMatrixCSC)
1190+
return is_array_of_symbolics(nonzeros(x))
1191+
end
1192+
11891193
function namespace_expr(
11901194
O, sys, n = (sys === nothing ? nothing : nameof(sys));
11911195
ivs = sys === nothing ? nothing : independent_variables(sys))

0 commit comments

Comments
 (0)