Skip to content

Commit 92e1e49

Browse files
fix: implement tovar(::Arr)
1 parent ce14965 commit 92e1e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameters.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ toparam(s::Num) = wrap(toparam(value(s)))
6363
Maps the variable to an unknown.
6464
"""
6565
tovar(s::Symbolic) = setmetadata(s, MTKVariableTypeCtx, VARIABLE)
66-
tovar(s::Num) = Num(tovar(value(s)))
66+
tovar(s::Union{Num, Symbolics.Arr}) = wrap(tovar(unwrap(s)))
6767

6868
"""
6969
$(SIGNATURES)

0 commit comments

Comments
 (0)