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.
symconvert
1 parent 27e7efb commit 8d2482cCopy full SHA for 8d2482c
src/systems/parameter_buffer.jl
@@ -1,5 +1,5 @@
1
symconvert(::Type{Symbolics.Struct{T}}, x) where {T} = convert(T, x)
2
-symconvert(::Type{T}, x) where {T} = convert(T, x)
+symconvert(::Type{T}, x::V) where {T, V} = convert(promote_type(T, V), x)
3
symconvert(::Type{Real}, x::Integer) = convert(Float16, x)
4
symconvert(::Type{V}, x) where {V <: AbstractArray} = convert(V, symconvert.(eltype(V), x))
5
0 commit comments