[−][src]Trait realfft::RealToComplex
An FFT that takes a real-valued input vector of length 2*N and transforms it to a complex spectrum of length N+1.
Required methods
pub fn process(
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 (with N/2 rounded down) element long complex output vector. 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 [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 (with N/2 rounded down) element long complex output vector. 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]
Get the length of the scratch space needed for process_with_scratch
.
pub fn len(&self) -> usize
[src]
Get the number of points that this FFT can process.
pub fn make_input_vec(&self) -> Vec<T>
[src]
Convenience method to make an input vector of the right type and length.
pub fn make_output_vec(&self) -> Vec<Complex<T>>
[src]
Convenience method to make an output vector of the right type and length.
pub fn make_scratch_vec(&self) -> Vec<Complex<T>>
[src]
Convenience method to make a scratch vector of the right type and length.
Implementors
impl<T: FftNum> RealToComplex<T> for RealToComplexEven<T>
[src]
pub fn process(
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 element long complex output vector. 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 [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 element long complex output vector. 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<T>
[src]
pub fn make_output_vec(&self) -> Vec<Complex<T>>
[src]
pub fn make_scratch_vec(&self) -> Vec<Complex<T>>
[src]
impl<T: FftNum> RealToComplex<T> for RealToComplexOdd<T>
[src]
pub fn process(
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 (with N/2 rounded down) element long complex output vector. 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 [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]
&self,
input: &mut [T],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
Transform a vector of N real-valued samples, storing the result in the N/2+1 (with N/2 rounded down) element long complex output vector. 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.