Skip to content

Commit 11f33f7

Browse files
fix: implement is_array_of_symbolics for SparseMatrixCSC
1 parent d559460 commit 11f33f7

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
@@ -1189,6 +1189,10 @@ function is_array_of_symbolics(x)
11891189
any(y -> symbolic_type(y) != NotSymbolic() || is_array_of_symbolics(y), x)
11901190
end
11911191

1192+
function is_array_of_symbolics(x::SparseMatrixCSC)
1193+
return is_array_of_symbolics(nonzeros(x))
1194+
end
1195+
11921196
function namespace_expr(
11931197
O, sys, n = (sys === nothing ? nothing : nameof(sys));
11941198
ivs = sys === nothing ? nothing : independent_variables(sys))

0 commit comments

Comments
 (0)