Skip to content

Commit f3ef341

Browse files
authored
Remove FastTransforms (#10)
* Update Project.toml * Remove FastTransforms dependency
1 parent a78b7ab commit f3ef341

File tree

6 files changed

+4
-112
lines changed

6 files changed

+4
-112
lines changed

Project.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.1.6"
3+
version = "0.2"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -13,7 +13,6 @@ DomainSets = "5b8099bc-c8ec-5219-889f-1d9e522a28bf"
1313
DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
1414
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
1515
FastGaussQuadrature = "442a2c76-b920-505d-bb47-c5924d526838"
16-
FastTransforms = "057dd010-8810-581a-b7be-e3fc3b93f78c"
1716
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
1817
InfiniteArrays = "4858937d-0d70-526a-a4dd-2d5cb5dd786c"
1918
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
@@ -36,14 +35,13 @@ Calculus = "0.5"
3635
DSP = "0.5, 0.6"
3736
DomainSets = "0.1"
3837
DualNumbers = "0.6.2"
39-
FFTW = "0.3"
38+
FFTW = "0.3, 1"
4039
FastGaussQuadrature = "0.3.2, 0.4"
41-
FastTransforms = "0.5, 0.6"
4240
FillArrays = "0.6, 0.7"
4341
InfiniteArrays = "0.2, 0.3"
4442
IntervalSets = "0.3.1"
4543
LazyArrays = "0.11, 0.12"
46-
LowRankApprox = "0.2"
44+
LowRankApprox = "0.2, 0.3"
4745
SpecialFunctions = "0.7, 0.8"
4846
StaticArrays = "0.9, 0.10, 0.11"
4947
ToeplitzMatrices = "0.5, 0.6"

src/ApproxFunBase.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ApproxFunBase
22
using Base, BlockArrays, BandedMatrices, BlockBandedMatrices, DomainSets, IntervalSets,
3-
SpecialFunctions, AbstractFFTs, FFTW, SpecialFunctions, DSP, DualNumbers, FastTransforms,
3+
SpecialFunctions, AbstractFFTs, FFTW, SpecialFunctions, DSP, DualNumbers,
44
LinearAlgebra, SparseArrays, LowRankApprox, FillArrays, InfiniteArrays #, Arpack
55
import StaticArrays, Calculus
66

@@ -72,9 +72,6 @@ import BlockBandedMatrices: blockbandwidth, blockbandwidths, blockcolstop, block
7272
isblockbanded, isbandedblockbanded, bb_numentries, BlockBandedSizes,
7373
BandedBlockBandedSizes
7474

75-
import FastTransforms: ChebyshevTransformPlan, IChebyshevTransformPlan, plan_chebyshevtransform,
76-
plan_chebyshevtransform!, plan_ichebyshevtransform, plan_ichebyshevtransform!
77-
7875
import FillArrays: AbstractFill, getindex_value
7976
import LazyArrays: cache
8077
import InfiniteArrays: Infinity, InfRanges, AbstractInfUnitRange, OneToInf

src/Domain.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ domainscompatible(a::Domain,b::Domain) = isambiguous(a) || isambiguous(b) ||
6363

6464
##TODO: Should fromcanonical be fromcanonical!?
6565

66-
points(d::IntervalOrSegmentDomain{T},n::Integer; kind::Int=1) where {T} =
67-
fromcanonical.(Ref(d), chebyshevpoints(float(real(eltype(T))), n; kind=kind)) # eltype to handle point
68-
bary(v::AbstractVector{Float64},d::IntervalOrSegmentDomain,x::Float64) = bary(v,tocanonical(d,x))
69-
7066
#TODO consider moving these
7167
leftendpoint(d::IntervalOrSegmentDomain{T}) where {T} = fromcanonical(d,-one(eltype(T)))
7268
rightendpoint(d::IntervalOrSegmentDomain{T}) where {T} = fromcanonical(d,one(eltype(T)))

src/LinearAlgebra/LinearAlgebra.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ include("standardchop.jl")
55
include("blas.jl")
66
include("lyap.jl")
77

8-
9-
include("bary.jl")
108
include("clenshaw.jl")
119

1210
include("hesseneigs.jl")

src/LinearAlgebra/bary.jl

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/LinearAlgebra/helper.jl

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -652,52 +652,9 @@ dynamic(f) = f
652652
dynamic(f::Function) = DFunction(f) # Assume f has to compile every time
653653

654654

655-
## Chebyshev transform
656655
# Matrix inputs
657656

658657

659-
function FastTransforms.chebyshevtransform!(X::AbstractMatrix{T};kind::Integer=1) where T<:fftwNumber
660-
if kind == 1
661-
if size(X) == (1,1)
662-
X
663-
else
664-
X=r2r!(X,REDFT10)
665-
X[:,1]/=2;X[1,:]/=2;
666-
lmul!(1/(size(X,1)*size(X,2)),X)
667-
end
668-
elseif kind == 2
669-
if size(X) == (1,1)
670-
X
671-
else
672-
X=r2r!(X,REDFT00)
673-
lmul!(1/((size(X,1)-1)*(size(X,2)-1)),X)
674-
X[:,1]/=2;X[:,end]/=2
675-
X[1,:]/=2;X[end,:]/=2
676-
X
677-
end
678-
end
679-
end
680-
681-
function FastTransforms.ichebyshevtransform!(X::AbstractMatrix{T};kind::Integer=1) where T<:fftwNumber
682-
if kind == 1
683-
if size(X) == (1,1)
684-
X
685-
else
686-
X[1,:]*=2;X[:,1]*=2
687-
X = r2r(X,REDFT01)
688-
lmul!(1/4,X)
689-
end
690-
elseif kind == 2
691-
if size(X) == (1,1)
692-
X
693-
else
694-
X[1,:]*=2;X[end,:]*=2;X[:,1]*=2;X[:,end]*=2
695-
X=chebyshevtransform!(X;kind=kind)
696-
X[1,:]*=2;X[end,:]*=2;X[:,1]*=2;X[:,end]*=2
697-
lmul!((size(X,1)-1)*(size(X,2)-1)/4,X)
698-
end
699-
end
700-
end
701658

702659

703660
## conv

0 commit comments

Comments
 (0)