Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in ultra2ultra with integer difference #237

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FastTransforms"
uuid = "057dd010-8810-581a-b7be-e3fc3b93f78c"
version = "0.15.14"
version = "0.15.15"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down
2 changes: 1 addition & 1 deletion src/toeplitzhankel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function plan_th_ultra2ultra!(::Type{S}, mn, λ₁, λ₂, dims) where {S}

if isapproxinteger(λ₂ - λ₁)
# TODO: don't make extra plan
plans = typeof(_good_plan_th_ultra2ultra!(S, mn, λ+0.1, λ₂, dims))[]
plans = typeof(_good_plan_th_ultra2ultra!(S, mn, λ+0.1, λ₂, dims))[]
else
plans = [_good_plan_th_ultra2ultra!(S, mn, λ₁, c, dims)]
end
Expand Down
1 change: 1 addition & 0 deletions test/toeplitzhankeltests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Random.seed!(0)
@test th_ultra2ultra(x,1, 2) ≈ lib_ultra2ultra(x, 1, 2)
@test th_ultra2ultra(x,0.1, 2.2) ≈ lib_ultra2ultra(x, 0.1, 2.2)
@test th_ultra2ultra(x, 2.2, 0.1) ≈ lib_ultra2ultra(x, 2.2, 0.1)
@test th_ultra2ultra(x, 1, 3) ≈ lib_ultra2ultra(x, 1, 3)
@test @inferred(th_jac2jac(x,0.1, 0.2,0.1,0.4)) ≈ lib_jac2jac(x, 0.1, 0.2,0.1,0.4)
@test th_jac2jac(x,0.1, 0.2,0.3,0.2) ≈ lib_jac2jac(x, 0.1, 0.2,0.3,0.2)
@test th_jac2jac(x,0.1, 0.2,0.3,0.4) ≈ lib_jac2jac(x, 0.1, 0.2,0.3,0.4)
Expand Down
Loading