Skip to content

Commit e3d47a2

Browse files
authored
Fix bug in ultra2ultra with integer difference (#237)
1 parent a1024f2 commit e3d47a2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FastTransforms"
22
uuid = "057dd010-8810-581a-b7be-e3fc3b93f78c"
3-
version = "0.15.14"
3+
version = "0.15.15"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/toeplitzhankel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function plan_th_ultra2ultra!(::Type{S}, mn, λ₁, λ₂, dims) where {S}
299299

300300
if isapproxinteger(λ₂ - λ₁)
301301
# TODO: don't make extra plan
302-
plans = typeof(_good_plan_th_ultra2ultra!(S, mn, λ+0.1, λ₂, dims))[]
302+
plans = typeof(_good_plan_th_ultra2ultra!(S, mn, λ+0.1, λ₂, dims))[]
303303
else
304304
plans = [_good_plan_th_ultra2ultra!(S, mn, λ₁, c, dims)]
305305
end

test/toeplitzhankeltests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Random.seed!(0)
1515
@test th_ultra2ultra(x,1, 2) lib_ultra2ultra(x, 1, 2)
1616
@test th_ultra2ultra(x,0.1, 2.2) lib_ultra2ultra(x, 0.1, 2.2)
1717
@test th_ultra2ultra(x, 2.2, 0.1) lib_ultra2ultra(x, 2.2, 0.1)
18+
@test th_ultra2ultra(x, 1, 3) lib_ultra2ultra(x, 1, 3)
1819
@test @inferred(th_jac2jac(x,0.1, 0.2,0.1,0.4)) lib_jac2jac(x, 0.1, 0.2,0.1,0.4)
1920
@test th_jac2jac(x,0.1, 0.2,0.3,0.2) lib_jac2jac(x, 0.1, 0.2,0.3,0.2)
2021
@test th_jac2jac(x,0.1, 0.2,0.3,0.4) lib_jac2jac(x, 0.1, 0.2,0.3,0.4)

0 commit comments

Comments
 (0)