Skip to content

Commit 303257a

Browse files
fix: fix zero_var for array symbolics
1 parent b8e8a8f commit 303257a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/problem_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ symbolics return an empty array of the appropriate `eltype`.
251251
function zero_var(x::Symbolic{T}) where {V <: Number, T <: Union{V, AbstractArray{V}}}
252252
if Symbolics.isarraysymbolic(x)
253253
if is_sized_array_symbolic(x)
254-
return zeros(T, size(x))
254+
return zeros(eltype(T), size(x))
255255
else
256256
return T[]
257257
end

0 commit comments

Comments
 (0)