Skip to content

Commit 11d49c8

Browse files
fix: implement is_array_of_symbolics for SparseMatrixCSC
1 parent be0a9f4 commit 11d49c8

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
@@ -1207,6 +1207,10 @@ function is_array_of_symbolics(x)
12071207
any(y -> symbolic_type(y) != NotSymbolic() || is_array_of_symbolics(y), x)
12081208
end
12091209

1210+
function is_array_of_symbolics(x::SparseMatrixCSC)
1211+
return is_array_of_symbolics(nonzeros(x))
1212+
end
1213+
12101214
function namespace_expr(
12111215
O, sys, n = (sys === nothing ? nothing : nameof(sys));
12121216
ivs = sys === nothing ? nothing : independent_variables(sys))

0 commit comments

Comments
 (0)