From 87f4169fe62d1ee30f05ef78182f92808fe52f80 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Thu, 7 May 2026 19:54:58 +0100 Subject: [PATCH 1/3] implement inv for disk analysis and synthesis --- src/libfasttransforms.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfasttransforms.jl b/src/libfasttransforms.jl index 3ce492d9..9d1d1002 100644 --- a/src/libfasttransforms.jl +++ b/src/libfasttransforms.jl @@ -1257,3 +1257,5 @@ function modified_jacobi_matrix(R, XP) end return XQ end + +inv(P::FTPlan{T,2,DISKANALYSIS}) where T = plan_disk_synthesis(T, P.n, P.m) \ No newline at end of file From b588d3834c79efe6186449f2e729a4178b932766 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Mon, 29 Jun 2026 09:45:27 +0100 Subject: [PATCH 2/3] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 12b89dcd..49e94291 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FastTransforms" uuid = "057dd010-8810-581a-b7be-e3fc3b93f78c" -version = "0.17.1" +version = "0.17.2" [deps] From 0af515c9f78af760bdb9dd7c45f5259ec3cd2e92 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 16:30:19 +0000 Subject: [PATCH 3/3] Add disk inverse unit test --- test/libfasttransformstests.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/libfasttransformstests.jl b/test/libfasttransformstests.jl index 545da7d9..7828ab0c 100644 --- a/test/libfasttransformstests.jl +++ b/test/libfasttransformstests.jl @@ -171,6 +171,9 @@ FastTransforms.ft_set_num_threads(ceil(Int, Base.Sys.CPU_THREADS/2)) ps = plan_disk_synthesis(A) pa = plan_disk_analysis(A) test_nd_plans(p, ps, pa, A) + @test inv(pa) isa typeof(ps) + @test inv(pa)*(p*A) ≈ ps*(p*A) + @test p\(pa*(inv(pa)*(p*A))) ≈ A A = diskones(Float64, n, 4n-3) + im*diskones(Float64, n, 4n-3) p = plan_disk2cxf(A, α, β) ps = plan_disk_synthesis(A)