Skip to content

Commit a7cdbf5

Browse files
CompatHelper: bump compat for "ApproxFunSingularities" to "0.2" (#714)
* CompatHelper: bump compat for "ApproxFunSingularities" to "0.2" * fix transforms Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sheehan Olver <[email protected]>
1 parent 255837a commit a7cdbf5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AbstractFFTs = "0.5"
2222
ApproxFunBase = "0.3.6"
2323
ApproxFunFourier = "0.2.5"
2424
ApproxFunOrthogonalPolynomials = "0.3.5"
25-
ApproxFunSingularities = "0.1.3"
25+
ApproxFunSingularities = "0.1.3, 0.2"
2626
Calculus = "0.5"
2727
DomainSets = "0.3"
2828
DualNumbers = "0.6.2"

src/Extras/dualnumbers.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,29 @@ valsdomain_type_promote(::Type{Dual{T}},::Type{Complex{V}}) where {T<:Complex,V<
2424
Dual{promote_type(T,Complex{V})},Complex{promote_type(real(T),V)}
2525

2626

27-
plan_chebyshevtransform!(x::Vector{T}, _) where {T<:Dual} =
27+
plan_chebyshevtransform!(x::AbstractVector{T}, ::Val) where {T<:Dual} =
2828
error("In-place variant not implemented for Dual")
2929

30-
plan_ichebyshevtransform!(x::Vector{T}, _) where {T<:Dual} =
30+
plan_ichebyshevtransform!(x::AbstractVector{T}, ::Val) where {T<:Dual} =
3131
error("In-place variant not implemented for Dual")
3232

3333

34-
plan_chebyshevtransform(v::Vector{D}, kind) where {D<:Dual} = plan_chebyshevtransform(realpart.(v), kind)
35-
plan_ichebyshevtransform(v::Vector{D}, kidn) where {D<:Dual} = plan_ichebyshevtransform(realpart.(v), kind)
34+
plan_chebyshevtransform(v::AbstractVector{D}, ::Val{kind}) where {D<:Dual,kind} = plan_chebyshevtransform(realpart.(v), Val(kind))
35+
plan_ichebyshevtransform(v::AbstractVector{D}, ::Val{kind}) where {D<:Dual,kind} = plan_ichebyshevtransform(realpart.(v), Val(kind))
3636

3737

3838

39-
*(P::ChebyshevTransformPlan,v::Vector{D}) where {k,D<:Dual} = dual.(P*realpart.(v),P*dualpart.(v))
39+
*(P::ChebyshevTransformPlan,v::AbstractVector{D}) where {k,D<:Dual} = dual.(P*realpart.(v),P*dualpart.(v))
4040

4141
#TODO: Hardy{false}
4242
for (OP,TransPlan) in ((:plan_transform,:TransformPlan),(:plan_itransform,:ITransformPlan)),
4343
TYP in (:Fourier,:Laurent,:SinSpace)
4444
@eval begin
45-
function $OP(sp::$TYP{D},x::Vector{T}) where {T<:Dual,D<:Domain}
45+
function $OP(sp::$TYP{D},x::AbstractVector{T}) where {T<:Dual,D<:Domain}
4646
plan = $OP(sp,realpart.(x))
4747
$TransPlan{T,typeof(sp),false,typeof(plan)}(sp,plan)
4848
end
49-
*(P::$TransPlan{T,$TYP{D},false},x::Vector{T}) where {T<:Dual,D<:Domain} =
49+
*(P::$TransPlan{T,$TYP{D},false},x::AbstractVector{T}) where {T<:Dual,D<:Domain} =
5050
dual(P.plan*realpart.(x),P.plan*dualpart.(x))
5151
end
5252
end
@@ -55,7 +55,7 @@ chop!(f::Fun,d::Dual)=chop!(f,realpart(d))
5555

5656

5757

58-
function simplifycfs!(cfs::Vector{DD},tol::Float64=4E-16) where DD<:Dual
58+
function simplifycfs!(cfs::AbstractVector{DD},tol::Float64=4E-16) where DD<:Dual
5959
for k=length(cfs):-2:2
6060
if maximum(abs,realpart.(cfs[k-1:k])) > maximum(abs,dualpart.(cfs[k-1:k]))*tol
6161
return resize!(cfs,k)

src/Extras/fftGeneric.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ plan_ichebyshevtransform(x::AbstractVector{T}, ::Val{kind}) where {T<:BigFloats,
5252
IChebyshevTransformPlan{T,kind,false,Nothing}()
5353

5454
#following Chebfun's @Chebtech1/vals2coeffs.m and @Chebtech2/vals2coeffs.m
55-
function *(P::ChebyshevTransformPlan{T,1,false}, x::AbstractVector{T}) where T<:BigFloats
55+
function *(P::ChebyshevTransformPlan{T,1,false,Nothing}, x::AbstractVector{T}) where T<:BigFloats
5656
n = length(x)
5757
if n == 1
5858
x
@@ -78,7 +78,7 @@ function *(P::ChebyshevTransformPlan{T,2,false}, x::AbstractVector{T}) where T<:
7878
end
7979

8080
#following Chebfun's @Chebtech1/vals2coeffs.m and @Chebtech2/vals2coeffs.m
81-
function *(P::IChebyshevTransformPlan{T,1,false}, x::AbstractVector{T}) where T<:BigFloats
81+
function *(P::IChebyshevTransformPlan{T,1,false,Nothing}, x::AbstractVector{T}) where T<:BigFloats
8282
n = length(x)
8383
if n == 1
8484
x

0 commit comments

Comments
 (0)