Skip to content

Commit 6e492b4

Browse files
committed
Bump nested Taylor1s mutating methods of subst, div and pow to NumberNotSeriesN as suggested by @lbenet
1 parent b5453b5 commit 6e492b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/arithmetic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ for (f, fc) in ((:+, :(add!)), (:-, :(subst!)))
473473
end
474474
end
475475

476-
function subst!(v::Taylor1{Taylor1{T}}, a::Taylor1{Taylor1{T}}, k::Int) where {T <: TS.NumberNotSeries}
476+
function subst!(v::Taylor1{Taylor1{T}}, a::Taylor1{Taylor1{T}}, k::Int) where {T <: NumberNotSeriesN}
477477
@inbounds for i in eachindex(v[k])
478478
v[k][i] = -a[k][i]
479479
end
@@ -1236,7 +1236,7 @@ function div!(c::Taylor1, a::NumberNotSeries, b::Taylor1)
12361236
end
12371237

12381238
@inline function div!(c::Taylor1{Taylor1{T}}, a::NumberNotSeries,
1239-
b::Taylor1{Taylor1{T}}, k::Int) where {T<:NumberNotSeries}
1239+
b::Taylor1{Taylor1{T}}, k::Int) where {T<:NumberNotSeriesN}
12401240
zero!(c, k)
12411241
iszero(a) && !iszero(b) && return nothing
12421242
# order and coefficient of first factorized term

src/power.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ end
322322
end
323323

324324
@inline function pow!(c::Taylor1{Taylor1{T}}, a::Taylor1{Taylor1{T}}, aux::Taylor1{Taylor1{T}},
325-
r::S, k::Int) where {T<:NumberNotSeries, S<:Real}
325+
r::S, k::Int) where {T<:NumberNotSeriesN, S<:Real}
326326
(r == 0) && return one!(c, a, k)
327327
(r == 1) && return identity!(c, a, k)
328328
(r == 2) && return sqr!(c, a, aux[k], k)

0 commit comments

Comments
 (0)