pub trait C2RFftExecutor<T> {
// Required methods
fn execute(
&self,
input: &[Complex<T>],
output: &mut [T],
) -> Result<(), ZaftError>;
fn real_length(&self) -> usize;
fn complex_length(&self) -> usize;
}Required Methods§
Sourcefn execute(
&self,
input: &[Complex<T>],
output: &mut [T],
) -> Result<(), ZaftError>
fn execute( &self, input: &[Complex<T>], output: &mut [T], ) -> Result<(), ZaftError>
Executes the Complex-to-Real Inverse FFT.
The size of the input slice must be equal to self.complex_length(), and the size of the
output slice must be equal to self.real_length().
§Parameters
input: The complex-valued, frequency-domain input array.output: The mutable slice where the final real-valued time-domain result will be written.
§Errors
Returns a ZaftError if the execution fails (e.g., due to incorrect slice lengths or internal computation errors).
Sourcefn real_length(&self) -> usize
fn real_length(&self) -> usize
Returns the length of the final real-valued output array (N).
This is the size of the time-domain vector that results from the inverse transform.
Sourcefn complex_length(&self) -> usize
fn complex_length(&self) -> usize
Returns the length of the complex-valued input array (N/2 + 1).