[−][src]Struct realfft::ComplexToRealEven
Implementations
impl<T: FftNum> ComplexToRealEven<T>
[src]
pub fn new(length: usize, fft_planner: &mut FftPlanner<T>) -> Self
[src]
Create a new ComplexToReal FFT for input data of a given length, and uses the given FftPlanner to build the inner FFT. Panics if the length is not even.
Trait Implementations
impl<T: FftNum> ComplexToReal<T> for ComplexToRealEven<T>
[src]
pub fn process(
&self,
input: &mut [Complex<T>],
output: &mut [T]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [Complex<T>],
output: &mut [T]
) -> Result<(), Box<dyn Error>>
Transform a complex spectrum of N/2+1 values and store the real result in the N long output. The input buffer is used as scratch space, so the contents of input should be considered garbage after calling. It also allocates additional scratch space as needed. An error is returned if any of the given slices has the wrong length.
pub fn process_with_scratch(
&self,
input: &mut [Complex<T>],
output: &mut [T],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [Complex<T>],
output: &mut [T],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a complex spectrum of N/2+1 values and store the real result in the N long output. The input buffer is used as scratch space, so the contents of input should be considered garbage after calling. It also uses the provided scratch vector instead of allocating, which will be faster if it is called more than once. An error is returned if any of the given slices has the wrong length.
pub fn get_scratch_len(&self) -> usize
[src]
pub fn len(&self) -> usize
[src]
pub fn make_input_vec(&self) -> Vec<Complex<T>>
[src]
pub fn make_output_vec(&self) -> Vec<T>
[src]
pub fn make_scratch_vec(&self) -> Vec<Complex<T>>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for ComplexToRealEven<T>
[src]
impl<T> Send for ComplexToRealEven<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for ComplexToRealEven<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for ComplexToRealEven<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> !UnwindSafe for ComplexToRealEven<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,