pub struct R2cSolver<T: Float> { /* private fields */ }Expand description
Real-to-Complex FFT solver.
For a real input of size N, produces N/2+1 complex outputs. The output satisfies conjugate symmetry: X[k] = X[N-k]*.
Implementations§
Source§impl<T: Float> R2cSolver<T>
impl<T: Float> R2cSolver<T>
Sourcepub fn output_size(&self) -> usize
pub fn output_size(&self) -> usize
Get the output complex size (N/2 + 1).
Sourcepub fn execute_inplace(&self, data: &mut [T])
pub fn execute_inplace(&self, data: &mut [T])
Execute R2C FFT in-place.
The input buffer is reinterpreted: first N real values are input, and first N/2+1 complex values will be output.
§Safety
The buffer must have enough space for max(N, 2*(N/2+1)) elements when viewed as T.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for R2cSolver<T>
impl<T> RefUnwindSafe for R2cSolver<T>where
T: RefUnwindSafe,
impl<T> Send for R2cSolver<T>
impl<T> Sync for R2cSolver<T>
impl<T> Unpin for R2cSolver<T>where
T: Unpin,
impl<T> UnwindSafe for R2cSolver<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