gpt4 book ai didi

ios - 为什么文档说使用 vDSP_DFT 而不是 FFT

转载 作者:行者123 更新时间:2023-11-29 05:12:52 25 4
gpt4 key购买 nike

在苹果文档中,它说

We suggest you use the DFT routines instead of these.

Use the DFT routines instead of these wherever possible. (For example, instead of calling vDSP_fft_zip with a setup created with vDSP_create_fftsetup, call vDSP_DFT_Execute(::::_:) with a setup created with vDSP_DFT_zop_CreateSetup(::_:).)

apple vDSP docs

使用 DFT 例程有什么优势?

最佳答案

DFT 例程更新,具有更通用的接口(interface),并且具有旧接口(interface)没有的一些功能。

一个特点是 DFT 例程使用通用设置数据库 - 当您创建 DFT 设置时,您可以传递以前的设置,并且如果合适,它将共享一些数据。

我希望 API 的某些部分得到了改进。例如,在创建 DFT 设置时,您只需指定所需的长度即可。使用 FFT,您必须指定除以长度的最大 2 次幂,并分别指定您是否需要该值的一倍、三倍或五倍。

在幕后,例程共享代码,因此在大多数情况下性能差异可以忽略不计。

关于ios - 为什么文档说使用 vDSP_DFT 而不是 FFT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59515926/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com