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 9ed02ce commit bdbf29aCopy full SHA for bdbf29a
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