We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tovar(::Arr)
1 parent ce14965 commit 92e1e49Copy full SHA for 92e1e49
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::Num) = Num(tovar(value(s)))
+tovar(s::Union{Num, Symbolics.Arr}) = wrap(tovar(unwrap(s)))
67
68
69
$(SIGNATURES)
0 commit comments