File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -293,16 +293,15 @@ function _Sym(::Type{T}, name::Symbol; kwargs...) where {T}
293
293
BasicSymbolic {T} (; impl, kwargs... )
294
294
end
295
295
296
- function Term {T} ( f, args; kw ... ) where T
297
- if eltype (args) != = Any
298
- args = convert (Vector{Any }, args)
296
+ function _Term ( :: Type {T}, f, args; kwargs ... ) where {T}
297
+ if eltype (args) != = BasicSymbolic
298
+ args = convert (Vector{BasicSymbolic }, args)
299
299
end
300
-
301
- Term {T} (;f = f, arguments = args, hash = Ref ( UInt ( 0 )), kw ... )
300
+ impl = Term (f, args)
301
+ BasicSymbolic {T} (; impl, kwargs ... )
302
302
end
303
-
304
- function Term (f, args; metadata= NO_METADATA)
305
- Term {_promote_symtype(f, args)} (f, args, metadata= metadata)
303
+ function _Term (f, args; kwargs... )
304
+ _Term (_promote_symtype (f, args), f, args; kwargs... )
306
305
end
307
306
308
307
function Add (:: Type{T} , coeff, dict; metadata= NO_METADATA, kw... ) where T
You can’t perform that action at this time.
0 commit comments