Skip to content

Commit 5f80da2

Browse files
committed
Fixed parameter order
1 parent 1d3a0fa commit 5f80da2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/InvariantEnsembles.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export InvariantEnsemble
2929

3030

3131

32-
## Construct orthogonal polynomials as IFuns from first moment and recurrence relationship
32+
## Construct orthogonal polynomials as Funs from first moment and recurrence relationship
3333
function orthonormalpolynomials(μ0,α::Vector::Vector,d)
3434
n=length(α)+1
3535

36-
p=Array(IFun{Float64},n)
36+
p=Array(Fun{ChebyshevSpace,Float64},n)
3737
p[1] = Fun([μ0],d)
3838
p[2] = multiplybyx(p[1])./β[1] - p[1].*α[1]./β[1]
3939
for k = 3:n
@@ -87,7 +87,7 @@ Base.size(ie::InvariantEnsemble,n)=size(ie.basis,2)
8787

8888
#Takes in list of OPs, constructs phis
8989
# can be unstable for large n
90-
function InvariantEnsemble(p::Array{IFun},V::Function,d,n::Integer)
90+
function InvariantEnsemble{F<:Fun}(p::Array{F},V::Function,d,n::Integer)
9191
error("Reimplement with matrix")
9292

9393
# wsq=IFun(x->exp(-n/2.*V(x)),d)
@@ -200,7 +200,7 @@ function iekernel(q::Array{Float64,2},d,plan::Function)
200200
end
201201
end
202202

203-
IFun(chebyshevtransform(ret,plan),d)
203+
Fun(chebyshevtransform(ret,plan),d)
204204
end
205205

206206

@@ -257,7 +257,7 @@ function samplespectra(q::Array{Float64,2},d,plan::Function,pts)
257257
end
258258

259259

260-
function iekernel{D}(p::Array{IFun{Float64,D}})
260+
function iekernel{F<:Fun}(p::Array{F})
261261
ret = 0.*p[1]
262262
for i = 1:length(p)
263263
ret += fasttimes(p[i],p[i])
@@ -266,7 +266,7 @@ function iekernel{D}(p::Array{IFun{Float64,D}})
266266
ret
267267
end
268268

269-
function samplespectra{D}(p::Array{IFun{Float64,D}})
269+
function samplespectra{F<:Fun}(p::Array{F})
270270
n = length(p)
271271
r=sample(iekernel(p)/n)
272272
if n==1

0 commit comments

Comments
 (0)