Skip to content

Commit 3f8d149

Browse files
fix: implement is_array_of_symbolics for SparseMatrixCSC
1 parent 24e4922 commit 3f8d149

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
@@ -1224,6 +1224,10 @@ function is_array_of_symbolics(x)
12241224
any(y -> symbolic_type(y) != NotSymbolic() || is_array_of_symbolics(y), x)
12251225
end
12261226

1227+
function is_array_of_symbolics(x::SparseMatrixCSC)
1228+
return is_array_of_symbolics(nonzeros(x))
1229+
end
1230+
12271231
function namespace_expr(
12281232
O, sys, n = (sys === nothing ? nothing : nameof(sys));
12291233
ivs = sys === nothing ? nothing : independent_variables(sys))

0 commit comments

Comments
 (0)