pub struct VariantState {
pub twiddles: Vec<f32>,
pub q8: Option<Q8Twiddles>,
pub unitary: Option<UnitaryWeights>,
pub mask: Vec<f32>,
/* private fields */
}Fields§
§twiddles: Vec<f32>§q8: Option<Q8Twiddles>§unitary: Option<UnitaryWeights>§mask: Vec<f32>Implementations§
Source§impl VariantState
impl VariantState
pub fn new(cfg: &FftLearnConfig) -> Self
pub fn set_inverse_input_block(&mut self, block: Vec<f32>)
pub fn set_inverse_spectrum(&mut self, spectrum: Vec<f32>)
pub fn prepare( &mut self, variant: FftVariantId, cfg: &FftLearnConfig, device: Device, train_steps: usize, seed: u64, ) -> Result<()>
pub fn forward( &mut self, variant: FftVariantId, signal: &[f32], cfg: &FftLearnConfig, ) -> Result<Vec<f32>>
pub fn welch( &mut self, variant: FftVariantId, signal: &[f32], cfg: &FftLearnConfig, ) -> Result<Vec<f32>>
pub fn inverse( &mut self, variant: FftVariantId, cfg: &FftLearnConfig, ) -> Result<Vec<f32>>
Auto Trait Implementations§
impl !RefUnwindSafe for VariantState
impl !Sync for VariantState
impl !UnwindSafe for VariantState
impl Freeze for VariantState
impl Send for VariantState
impl Unpin for VariantState
impl UnsafeUnpin for VariantState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more