JuliaMath / JuliaMath/FFTW.jl

FFTW.r2r slow

Open
#62 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
300
Forks
61
PR merge metrics
No merged PRs in 30d

Description

I was trying to use discrete sine transform which is not in the standard Base library (why is cosine transform there~?) so I turned to use fftw.r2r with FFTW.RODFT00 flag. It turned out to be 2x slower the Matlab dst somehow. Does anyone have the same issue?

This is the result for 2D transform
Julia:
@time ainv(rand(1000,1000))
0.612343 seconds (204 allocations: 30.528 MiB, 0.86% gc time)

Matlab:
Elapsed time is 0.140380 seconds.

PS I turned the multithreading on in Julia already.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.