diff --git a/src/primitive.jl b/src/primitive.jl index b5b2e6b..caff022 100644 --- a/src/primitive.jl +++ b/src/primitive.jl @@ -123,12 +123,6 @@ end ex = :($ex; TaylorScalar($([Symbol('v', i) for i in 1:N]...))) return :(@inbounds $ex) end -@inline function *(a::TaylorScalar{T1, N}, b::TaylorScalar{T2, N}) where {T1, T2, N} - *(promote(a, b)...) -end -@inline function /(a::TaylorScalar{T1, N}, b::TaylorScalar{T2, N}) where {T1, T2, N} - *(promote(a, b)...) -end for R in (Integer, Real) @eval @generated function ^(t::TaylorScalar{T, N}, n::S) where {S <: $R, T, N} diff --git a/src/scalar.jl b/src/scalar.jl index 1f3413a..ca523fb 100644 --- a/src/scalar.jl +++ b/src/scalar.jl @@ -89,10 +89,6 @@ function promote_rule(::Type{TaylorScalar{T, N}}, ::Type{S}) where {T, S, N} TaylorScalar{promote_type(T, S), N} end -function promote_rule(::Type{TaylorScalar{T1, N}}, - ::Type{TaylorScalar{T2, N}}) where {T1, T2, N} - TaylorScalar{promote_type(T1, T2), N} -end function (::Type{F})(x::TaylorScalar{T, N}) where {T, N, F <: AbstractFloat} F(primal(x))