pub struct RealFftPlanner<T: FftNum> {
pub(crate) planner: FftPlanner<T>,
pub(crate) r2c_cache: HashMap<usize, Arc<dyn RealToComplex<T>>>,
pub(crate) c2r_cache: HashMap<usize, Arc<dyn ComplexToReal<T>>>,
}Expand description
A planner is used to create FFTs. It caches results internally, so when making more than one FFT it is advisable to reuse the same planner.
Fields§
§planner: FftPlanner<T>§r2c_cache: HashMap<usize, Arc<dyn RealToComplex<T>>>§c2r_cache: HashMap<usize, Arc<dyn ComplexToReal<T>>>Implementations§
Source§impl<T: FftNum> RealFftPlanner<T>
impl<T: FftNum> RealFftPlanner<T>
Sourcepub fn plan_fft_forward(&mut self, len: usize) -> Arc<dyn RealToComplex<T>> ⓘ
pub fn plan_fft_forward(&mut self, len: usize) -> Arc<dyn RealToComplex<T>> ⓘ
Plan a real-to-complex forward FFT. Returns the FFT in a shared reference. If requesting a second forward FFT of the same length, the planner will return a new reference to the already existing one.
Sourcepub fn plan_fft_inverse(&mut self, len: usize) -> Arc<dyn ComplexToReal<T>> ⓘ
pub fn plan_fft_inverse(&mut self, len: usize) -> Arc<dyn ComplexToReal<T>> ⓘ
Plan a complex-to-real inverse FFT. Returns the FFT in a shared reference. If requesting a second inverse FFT of the same length, the planner will return a new reference to the already existing one.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RealFftPlanner<T>
impl<T> !UnwindSafe for RealFftPlanner<T>
impl<T> Freeze for RealFftPlanner<T>
impl<T> Send for RealFftPlanner<T>
impl<T> Sync for RealFftPlanner<T>
impl<T> Unpin for RealFftPlanner<T>where
T: Unpin,
impl<T> UnsafeUnpin for RealFftPlanner<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more