Skip to content

Commit f1f850b

Browse files
lrnvtansongchen
authored andcommitted
up
1 parent dd72964 commit f1f850b

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/primitive.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@ end
123123
ex = :($ex; TaylorScalar($([Symbol('v', i) for i in 1:N]...)))
124124
return :(@inbounds $ex)
125125
end
126-
@inline function *(a::TaylorScalar{T1, N}, b::TaylorScalar{T2, N}) where {T1, T2, N}
127-
*(promote(a, b)...)
128-
end
129-
@inline function /(a::TaylorScalar{T1, N}, b::TaylorScalar{T2, N}) where {T1, T2, N}
130-
*(promote(a, b)...)
131-
end
132126

133127
for R in (Integer, Real)
134128
@eval @generated function ^(t::TaylorScalar{T, N}, n::S) where {S <: $R, T, N}

src/scalar.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ function promote_rule(::Type{TaylorScalar{T, N}},
8989
::Type{S}) where {T, S, N}
9090
TaylorScalar{promote_type(T, S), N}
9191
end
92-
function promote_rule(::Type{TaylorScalar{T1, N}},
93-
::Type{TaylorScalar{T2, N}}) where {T1, T2, N}
94-
TaylorScalar{promote_type(T1, T2), N}
95-
end
9692

9793
function (::Type{F})(x::TaylorScalar{T, N}) where {T, N, F <: AbstractFloat}
9894
F(primal(x))

0 commit comments

Comments
 (0)