pub enum FftNorm {
Backward,
Forward,
Ortho,
}Expand description
FFT normalization convention.
Backward matches NumPy, JAX, and PyTorch defaults: the forward transform
is unscaled and the inverse transform is scaled by 1 / n.
§Examples
use tenferro_fft::FftNorm;
assert_eq!(FftNorm::default(), FftNorm::Backward);Variants§
Backward
Scale inverse transforms by 1 / n.
Forward
Scale forward transforms by 1 / n.
Ortho
Scale both forward and inverse transforms by 1 / sqrt(n).
Trait Implementations§
impl Copy for FftNorm
impl Eq for FftNorm
impl StructuralPartialEq for FftNorm
Auto Trait Implementations§
impl Freeze for FftNorm
impl RefUnwindSafe for FftNorm
impl Send for FftNorm
impl Sync for FftNorm
impl Unpin for FftNorm
impl UnsafeUnpin for FftNorm
impl UnwindSafe for FftNorm
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.