Skip to content

Commit a2a3cfb

Browse files
committed
update for latest 0.6
1 parent f9b395c commit a2a3cfb

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

src/ChebyshevJacobiPlan.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ type ChebyshevJacobiPlan{D,T,DCT,DST,SA} <: FastTransformPlan{D,T}
7575
anαβ::Vector{T}
7676
c_cheb2::Vector{T}
7777
pr::Vector{T}
78-
function ChebyshevJacobiPlan(CJC::ChebyshevJacobiConstants{D,T},CJI::ChebyshevJacobiIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T},cfs::Matrix{T}::Vector{T},tempcos::Vector{T},tempsin::Vector{T},tempcosβsinα::Vector{T},tempmindices::Vector{T},cnαβ::Vector{T},cnmαβ::Vector{T})
79-
P = new()
78+
function (::Type{ChebyshevJacobiPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CJC::ChebyshevJacobiConstants{D,T},CJI::ChebyshevJacobiIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T},cfs::Matrix{T}::Vector{T},tempcos::Vector{T},tempsin::Vector{T},
79+
tempcosβsinα::Vector{T},tempmindices::Vector{T},cnαβ::Vector{T},cnmαβ::Vector{T})
80+
P = new{D,T,DCT,DST,SA}()
8081
P.CJC = CJC
8182
P.CJI = CJI
8283
P.p₁ = p₁
@@ -96,16 +97,17 @@ type ChebyshevJacobiPlan{D,T,DCT,DST,SA} <: FastTransformPlan{D,T}
9697
P.cnmαβ = cnmαβ
9798
P
9899
end
99-
function ChebyshevJacobiPlan(CJC::ChebyshevJacobiConstants{D,T},CJI::ChebyshevJacobiIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T},cfs::Matrix{T}::Vector{T},tempcos::Vector{T},tempsin::Vector{T},tempcosβsinα::Vector{T},tempmindices::Vector{T},cnαβ::Vector{T},cnmαβ::Vector{T},w::Vector{T},anαβ::Vector{T},c_cheb2::Vector{T},pr::Vector{T})
100+
function (::Type{ChebyshevJacobiPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CJC::ChebyshevJacobiConstants{D,T},CJI::ChebyshevJacobiIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T},cfs::Matrix{T}::Vector{T},tempcos::Vector{T},tempsin::Vector{T},tempcosβsinα::Vector{T},tempmindices::Vector{T},cnαβ::Vector{T},cnmαβ::Vector{T},
101+
w::Vector{T},anαβ::Vector{T},c_cheb2::Vector{T},pr::Vector{T})
100102
P = ChebyshevJacobiPlan{D,T,DCT,DST,SA}(CJC,CJI,p₁,p₂,rp,c₁,c₂,um,vm,cfs,θ,tempcos,tempsin,tempcosβsinα,tempmindices,cnαβ,cnmαβ)
101103
P.w = w
102104
P.anαβ = anαβ
103105
P.c_cheb2 = c_cheb2
104106
P.pr = pr
105107
P
106108
end
107-
function ChebyshevJacobiPlan(CJC::ChebyshevJacobiConstants{D,T})
108-
P = new()
109+
function (::Type{ChebyshevJacobiPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CJC::ChebyshevJacobiConstants{D,T})
110+
P = new{D,T,DCT,DST,SA}()
109111
P.CJC = CJC
110112
P
111113
end

src/ChebyshevUltrasphericalPlan.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ type ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA} <: FastTransformPlan{D,T}
7575
anλ::Vector{T}
7676
c_cheb2::Vector{T}
7777
pr::Vector{T}
78-
function ChebyshevUltrasphericalPlan(CUC::ChebyshevUltrasphericalConstants{D,T},CUI::ChebyshevUltrasphericalIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T}::Vector{T},tempsin::Vector{T},tempsin2::Vector{T},tempsinλ::Vector{T},tempsinλm::Vector{T},tempmindices::Vector{T},cnλ::Vector{T},cnmλ::Vector{T})
79-
P = new()
78+
function (::Type{ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CUC::ChebyshevUltrasphericalConstants{D,T},CUI::ChebyshevUltrasphericalIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T}::Vector{T},tempsin::Vector{T},tempsin2::Vector{T},tempsinλ::Vector{T},tempsinλm::Vector{T},tempmindices::Vector{T},cnλ::Vector{T},cnmλ::Vector{T})
79+
P = new{D,T,DCT,DST,SA}()
8080
P.CUC = CUC
8181
P.CUI = CUI
8282
P.p₁ = p₁
@@ -96,16 +96,16 @@ type ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA} <: FastTransformPlan{D,T}
9696
P.cnmλ = cnmλ
9797
P
9898
end
99-
function ChebyshevUltrasphericalPlan(CUC::ChebyshevUltrasphericalConstants{D,T},CUI::ChebyshevUltrasphericalIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T}::Vector{T},tempsin::Vector{T},tempsin2::Vector{T},tempsinλ::Vector{T},tempsinλm::Vector{T},tempmindices::Vector{T},cnλ::Vector{T},cnmλ::Vector{T},w::Vector{T},anλ::Vector{T},c_cheb2::Vector{T},pr::Vector{T})
99+
function (::Type{ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CUC::ChebyshevUltrasphericalConstants{D,T},CUI::ChebyshevUltrasphericalIndices,p₁::DCT,p₂::DST,rp::RecurrencePlan{T},c₁::Vector{T},c₂::SA,um::Vector{T},vm::Vector{T}::Vector{T},tempsin::Vector{T},tempsin2::Vector{T},tempsinλ::Vector{T},tempsinλm::Vector{T},tempmindices::Vector{T},cnλ::Vector{T},cnmλ::Vector{T},w::Vector{T},anλ::Vector{T},c_cheb2::Vector{T},pr::Vector{T})
100100
P = ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA}(CUC,CUI,p₁,p₂,rp,c₁,c₂,um,vm,θ,tempsin,tempsin2,tempsinλ,tempsinλm,tempmindices,cnλ,cnmλ)
101101
P.w = w
102102
P.anλ = anλ
103103
P.c_cheb2 = c_cheb2
104104
P.pr = pr
105105
P
106106
end
107-
function ChebyshevUltrasphericalPlan(CUC::ChebyshevUltrasphericalConstants{D,T})
108-
P = new()
107+
function (::Type{ChebyshevUltrasphericalPlan{D,T,DCT,DST,SA}}){D,T,DCT,DST,SA}(CUC::ChebyshevUltrasphericalConstants{D,T})
108+
P = new{D,T,DCT,DST,SA}()
109109
P.CUC = CUC
110110
P
111111
end

src/FastTransforms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__precompile__()
22
module FastTransforms
33

4-
using Base, ToeplitzMatrices
4+
using Base, ToeplitzMatrices, Compat
55

66
import Base: *
77
import Base: view
@@ -28,7 +28,7 @@ include("fejer.jl")
2828
include("recurrence.jl")
2929
include("PaduaTransform.jl")
3030

31-
abstract FastTransformPlan{D,T}
31+
@compat abstract type FastTransformPlan{D,T} end
3232

3333
include("ChebyshevJacobiPlan.jl")
3434
include("jac2cheb.jl")

src/fftBigFloat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
typealias BigFloats Union{BigFloat,Complex{BigFloat}}
1+
const BigFloats = Union{BigFloat,Complex{BigFloat}}
22

33
real(x...)=Base.real(x...)
44
real{T<:Real}(::Type{T})=T

src/toeplitzhankel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ immutable ToeplitzHankelPlan{S}
1010
C::Vector{Vector{S}}
1111
DL::Vector{S}
1212
DR::Vector{S}
13-
ToeplitzHankelPlan(T,C,DL,DR)=new(T,C,DL,DR)
13+
(::Type{ToeplitzHankelPlan{S}}){S}(T,C,DL,DR) = new{S}(T,C,DL,DR)
1414
end
1515

1616
function ToeplitzHankelPlan(T::TriangularToeplitz,C::Vector,DL::AbstractVector,DR::AbstractVector)

0 commit comments

Comments
 (0)