Skip to content

Commit 1d3a0fa

Browse files
committed
Updated for new ApproxFun
1 parent 71af9b5 commit 1d3a0fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/InvariantEnsembles.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export InvariantEnsemble
3333
function orthonormalpolynomials(μ0,α::Vector::Vector,d)
3434
n=length(α)+1
3535

36-
p=Array(IFun{Float64,Interval{Float64}},n)
36+
p=Array(IFun{Float64},n)
3737
p[1] = Fun([μ0],d)
3838
p[2] = multiplybyx(p[1])./β[1] - p[1].*α[1]./β[1]
3939
for k = 3:n
@@ -257,7 +257,7 @@ function samplespectra(q::Array{Float64,2},d,plan::Function,pts)
257257
end
258258

259259

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

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

0 commit comments

Comments
 (0)