pub struct RealFftPlanner<T: Float> { /* private fields */ }
Expand description
Real FFT planner for creating and managing FFT plans
This planner creates reusable FFT plans optimized for real-valued input/output. Plans are thread-safe and can be shared across threads using Arc.
§Type Parameters
T
- Float type (f32 or f64)
§Examples
use scirs2_fft::real_planner::RealFftPlanner;
let mut planner = RealFftPlanner::<f64>::new();
let forward = planner.plan_fft_forward(1024);
let inverse = planner.plan_fft_inverse(1024);
Implementations§
Source§impl RealFftPlanner<f64>
impl RealFftPlanner<f64>
Sourcepub fn plan_fft_forward(&mut self, length: usize) -> Arc<dyn RealToComplex<f64>>
pub fn plan_fft_forward(&mut self, length: usize) -> Arc<dyn RealToComplex<f64>>
Sourcepub fn plan_fft_inverse(&mut self, length: usize) -> Arc<dyn ComplexToReal<f64>>
pub fn plan_fft_inverse(&mut self, length: usize) -> Arc<dyn ComplexToReal<f64>>
Source§impl RealFftPlanner<f32>
impl RealFftPlanner<f32>
Sourcepub fn plan_fft_forward(&mut self, length: usize) -> Arc<dyn RealToComplex<f32>>
pub fn plan_fft_forward(&mut self, length: usize) -> Arc<dyn RealToComplex<f32>>
Sourcepub fn plan_fft_inverse(&mut self, length: usize) -> Arc<dyn ComplexToReal<f32>>
pub fn plan_fft_inverse(&mut self, length: usize) -> Arc<dyn ComplexToReal<f32>>
Trait Implementations§
Source§impl Default for RealFftPlanner<f32>
impl Default for RealFftPlanner<f32>
Auto Trait Implementations§
impl<T> Freeze for RealFftPlanner<T>
impl<T> RefUnwindSafe for RealFftPlanner<T>where
T: RefUnwindSafe,
impl<T> Send for RealFftPlanner<T>where
T: Send,
impl<T> Sync for RealFftPlanner<T>where
T: Sync,
impl<T> Unpin for RealFftPlanner<T>where
T: Unpin,
impl<T> UnwindSafe for RealFftPlanner<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more