Skip to content

Commit 4274202

Browse files
committed
Tests pass in 0.5 again
1 parent 024763e commit 4274202

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/toeplitzhankel.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end
9999
# Diagonally-scaled Toeplitz∘Hankel polynomial transforms
100100

101101
function leg2chebTH{S}(::Type{S},n)
102-
λ = Λ(0:half(S):n-1)
102+
λ = Λ.(0:half(S):n-1)
103103
t = zeros(S,n)
104104
t[1:2:end] = λ[1:2:n]
105105
T = TriangularToeplitz(2t/π,:U)
@@ -122,9 +122,9 @@ function cheb2legTH{S}(::Type{S},n)
122122
end
123123

124124
function leg2chebuTH{S}(::Type{S},n)
125-
λ = Λ(0:half(S):n-1)
125+
λ = Λ.(0:half(S):n-1)
126126
t = zeros(S,n)
127-
t[1:2:end] = λ[1:2:n]./(((1:2:n)-2))
127+
t[1:2:end] = λ[1:2:n]./(((1:2:n).-2))
128128
T = TriangularToeplitz(-2t/π,:U)
129129
H = Hankel(λ[1:n]./((1:n)+1),λ[n:end]./((n:2n-1)+1))
130130
T,H

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ v = zeros(Nr)
5757
Na,Nb = 5,5
5858
V = zeros(Na,Nb)
5959

60-
for N in round.(Int,logspace(1,3,3))
60+
for N in round.([Int],logspace(1,3,3))
6161
println("")
6262
println("N = ",N)
6363
println("")

0 commit comments

Comments
 (0)