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.
1 parent de2bb26 commit d1890c7Copy full SHA for d1890c7
src/parameters.jl
@@ -63,7 +63,7 @@ toparam(s::Num) = wrap(toparam(value(s)))
63
Maps the variable to an unknown.
64
"""
65
tovar(s::Symbolic) = setmetadata(s, MTKVariableTypeCtx, VARIABLE)
66
-tovar(s::Union{Num, Symbolics.Arr}) = Num(tovar(value(s)))
+tovar(s::Union{Num, Symbolics.Arr}) = wrap(tovar(unwrap(s)))
67
68
69
$(SIGNATURES)
0 commit comments