Skip to content

Commit 0af515c

Browse files
authored
Add disk inverse unit test
1 parent b588d38 commit 0af515c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/libfasttransformstests.jl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ FastTransforms.ft_set_num_threads(ceil(Int, Base.Sys.CPU_THREADS/2))
171171
ps = plan_disk_synthesis(A)
172172
pa = plan_disk_analysis(A)
173173
test_nd_plans(p, ps, pa, A)
174+
@test inv(pa) isa typeof(ps)
175+
@test inv(pa)*(p*A) ≈ ps*(p*A)
176+
@test p\(pa*(inv(pa)*(p*A))) ≈ A
174177
A = diskones(Float64, n, 4n-3) + im*diskones(Float64, n, 4n-3)
175178
p = plan_disk2cxf(A, α, β)
176179
ps = plan_disk_synthesis(A)

0 commit comments

Comments
 (0)