We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zero_var
1 parent b8e8a8f commit 303257aCopy full SHA for 303257a
src/systems/problem_utils.jl
@@ -251,7 +251,7 @@ symbolics return an empty array of the appropriate `eltype`.
251
function zero_var(x::Symbolic{T}) where {V <: Number, T <: Union{V, AbstractArray{V}}}
252
if Symbolics.isarraysymbolic(x)
253
if is_sized_array_symbolic(x)
254
- return zeros(T, size(x))
+ return zeros(eltype(T), size(x))
255
else
256
return T[]
257
end
0 commit comments