pub(crate) struct RadixN<T> {
twiddles: Box<[Complex<T>]>,
base_fft: Arc<dyn Fft<T>>,
base_len: usize,
factors: Box<[TransposeFactor]>,
butterflies: Box<[InternalRadixFactor<T>]>,
len: usize,
direction: FftDirection,
inplace_scratch_len: usize,
outofplace_scratch_len: usize,
immut_scratch_len: usize,
}Fields§
§twiddles: Box<[Complex<T>]>§base_fft: Arc<dyn Fft<T>>§base_len: usize§factors: Box<[TransposeFactor]>§butterflies: Box<[InternalRadixFactor<T>]>§len: usize§direction: FftDirection§inplace_scratch_len: usize§outofplace_scratch_len: usize§immut_scratch_len: usizeImplementations§
Source§impl<T: FftNum> RadixN<T>
impl<T: FftNum> RadixN<T>
Sourcepub fn new(factors: &[RadixFactor], base_fft: Arc<dyn Fft<T>>) -> Self
pub fn new(factors: &[RadixFactor], base_fft: Arc<dyn Fft<T>>) -> Self
Constructs a RadixN instance which computes FFTs of length factor_product * base_fft.len()
fn inplace_scratch_len(&self) -> usize
fn outofplace_scratch_len(&self) -> usize
fn immut_scratch_len(&self) -> usize
fn perform_fft_immut( &self, input: &[Complex<T>], output: &mut [Complex<T>], scratch: &mut [Complex<T>], )
fn perform_fft_out_of_place( &self, input: &mut [Complex<T>], output: &mut [Complex<T>], scratch: &mut [Complex<T>], )
Trait Implementations§
Source§impl<T> Direction for RadixN<T>
impl<T> Direction for RadixN<T>
Source§fn fft_direction(&self) -> FftDirection
fn fft_direction(&self) -> FftDirection
Returns FftDirection::Forward if this instance computes forward FFTs, or FftDirection::Inverse for inverse FFTs
Source§impl<T: FftNum> Fft<T> for RadixN<T>
impl<T: FftNum> Fft<T> for RadixN<T>
Source§fn process_immutable_with_scratch(
&self,
input: &[Complex<T>],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>],
)
fn process_immutable_with_scratch( &self, input: &[Complex<T>], output: &mut [Complex<T>], scratch: &mut [Complex<T>], )
Divides
input and output into chunks of self.len(), and computes a FFT on each chunk while
keeping input untouched. Read moreSource§fn process_outofplace_with_scratch(
&self,
input: &mut [Complex<T>],
output: &mut [Complex<T>],
scratch: &mut [Complex<T>],
)
fn process_outofplace_with_scratch( &self, input: &mut [Complex<T>], output: &mut [Complex<T>], scratch: &mut [Complex<T>], )
Divides
input and output into chunks of size self.len(), and computes a FFT on each chunk. Read moreSource§fn process_with_scratch(
&self,
buffer: &mut [Complex<T>],
scratch: &mut [Complex<T>],
)
fn process_with_scratch( &self, buffer: &mut [Complex<T>], scratch: &mut [Complex<T>], )
Source§fn get_inplace_scratch_len(&self) -> usize
fn get_inplace_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_with_scratch Read moreSource§fn get_outofplace_scratch_len(&self) -> usize
fn get_outofplace_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_outofplace_with_scratch Read moreSource§fn get_immutable_scratch_len(&self) -> usize
fn get_immutable_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_immutable_with_scratch Read moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for RadixN<T>
impl<T> !UnwindSafe for RadixN<T>
impl<T> Freeze for RadixN<T>
impl<T> Send for RadixN<T>where
T: Send,
impl<T> Sync for RadixN<T>where
T: Sync,
impl<T> Unpin for RadixN<T>
impl<T> UnsafeUnpin for RadixN<T>
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