Skip to content

Commit 38b6817

Browse files
CompatHelper: bump compat for "FastTransforms" to "0.13" (#750)
* CompatHelper: bump compat for "FastTransforms" to "0.13" * v0.12.7 * v0.13 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sheehan Olver <solver@mac.com>
1 parent 3c3fc47 commit 38b6817

File tree

3 files changed

+10
-77
lines changed

3 files changed

+10
-77
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.5'
14-
- '1'
13+
- '1.6'
1514
- '^1.7.0-0'
1615
os:
1716
- ubuntu-latest

Project.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFun"
22
uuid = "28f2ccd6-bb30-5033-b560-165f7b14dc2f"
3-
version = "0.12.6"
3+
version = "0.13"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -19,20 +19,20 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1919
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2020

2121
[compat]
22-
AbstractFFTs = "0.5, 1.0"
23-
ApproxFunBase = "0.3, 0.4, 0.5"
22+
AbstractFFTs = "1.0"
23+
ApproxFunBase = "0.5"
2424
ApproxFunFourier = "0.2"
25-
ApproxFunOrthogonalPolynomials = "0.3, 0.4"
26-
ApproxFunSingularities = "0.1.3, 0.2"
25+
ApproxFunOrthogonalPolynomials = "0.4"
26+
ApproxFunSingularities = "0.2"
2727
Calculus = "0.5"
2828
DomainSets = "0.3, 0.4, 0.5"
2929
DualNumbers = "0.6.2"
3030
FFTW = "1"
31-
FastTransforms = "0.10, 0.11, 0.12"
31+
FastTransforms = "0.13"
3232
RecipesBase = "1.0"
33-
Reexport = "0.2, 1.0"
34-
SpecialFunctions = "0.10, 1.1"
35-
julia = "1.5"
33+
Reexport = "1.0"
34+
SpecialFunctions = "1.1"
35+
julia = "1.6"
3636

3737
[extras]
3838
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/Extras/fftGeneric.jl

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -37,72 +37,6 @@ plan_fft(x::Vector{F}) where {F<:Fun} = fft
3737
plan_ifft(x::Vector{F}) where {F<:Fun} = ifft
3838
plan_ifft!(x::Vector{F}) where {F<:Fun} = ifft
3939

40-
# Chebyshev transforms and plans for BigFloats
41-
# no plan exists at the moment, so we make a dummy plan
42-
plan_chebyshevtransform!(x::Vector{T}, kind) where {T<:BigFloats} =
43-
error("In-place variant not implemented for BigFloat")
44-
45-
plan_ichebyshevtransform!(x::Vector{T}, kind) where {T<:BigFloats} =
46-
error("In-place variant not implemented for BigFloat")
47-
48-
49-
plan_chebyshevtransform(x::AbstractVector{T}, ::Val{kind}) where {T<:BigFloats,kind} =
50-
ChebyshevTransformPlan{T,kind,false,Nothing}()
51-
plan_ichebyshevtransform(x::AbstractVector{T}, ::Val{kind}) where {T<:BigFloats,kind} =
52-
IChebyshevTransformPlan{T,kind,false,Nothing}()
53-
54-
#following Chebfun's @Chebtech1/vals2coeffs.m and @Chebtech2/vals2coeffs.m
55-
function *(P::ChebyshevTransformPlan{T,1,false,Nothing}, x::AbstractVector{T}) where T<:BigFloats
56-
n = length(x)
57-
if n == 1
58-
x
59-
else
60-
w = [2exp(im*convert(T,π)*k/2n) for k=0:n-1]
61-
ret = w.*ifft([x;reverse(x)])[1:n]
62-
ret = T<:Real ? real(ret) : ret
63-
ret[1] /= 2
64-
ret
65-
end
66-
end
67-
68-
function *(P::ChebyshevTransformPlan{T,2,false}, x::AbstractVector{T}) where T<:BigFloats
69-
n = length(x)
70-
if n == 1
71-
x
72-
else
73-
ret = ifft([x;x[end:-1:2]])[1:n]
74-
ret = T<:Real ? real(ret) : ret
75-
ret[2:n-1] *= 2
76-
ret
77-
end
78-
end
79-
80-
#following Chebfun's @Chebtech1/vals2coeffs.m and @Chebtech2/vals2coeffs.m
81-
function *(P::IChebyshevTransformPlan{T,1,false,Nothing}, x::AbstractVector{T}) where T<:BigFloats
82-
n = length(x)
83-
if n == 1
84-
x
85-
else
86-
w = [exp(-im*convert(T,π)*k/2n)/2 for k=0:2n-1]
87-
w[1] *= 2;w[n+1] *= 0;w[n+2:end] *= -1
88-
ret = fft(w.*[x;one(T);x[end:-1:2]])
89-
ret = T<:Real ? real(ret) : ret
90-
end
91-
end
92-
function *(P::IChebyshevTransformPlan{T,2,false}, x::AbstractVector{T}) where T<:BigFloats
93-
n = length(x)
94-
if n == 1
95-
x
96-
else
97-
##TODO: make thread safe
98-
x[1] *= 2;x[end] *= 2
99-
ret = chebyshevtransform(x, Val(2))
100-
x[1] /=2;x[end] /=2
101-
ret[1] *= 2;ret[end] *= 2
102-
ret *= .5*(n-1)
103-
ret
104-
end
105-
end
10640

10741
# Fourier space plans for BigFloat
10842

0 commit comments

Comments
 (0)