Skip to content

Commit 8dc1919

Browse files
fix: implement is_array_of_symbolics for SparseMatrixCSC
1 parent 9607c39 commit 8dc1919

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

1225+
function is_array_of_symbolics(x::SparseMatrixCSC)
1226+
return is_array_of_symbolics(nonzeros(x))
1227+
end
1228+
12251229
function namespace_expr(
12261230
O, sys, n = (sys === nothing ? nothing : nameof(sys));
12271231
ivs = sys === nothing ? nothing : independent_variables(sys))

0 commit comments

Comments
 (0)