pub enum SignalView<'a> {
Complex(&'a [(f64, f64)]),
Real(&'a [f64]),
}Expand description
Borrowed transform input.
Variants§
Complex(&'a [(f64, f64)])
Canonical complex cells as (real, imag) pairs.
Real(&'a [f64])
Canonical real cells.
Implementations§
Source§impl<'a> SignalView<'a>
impl<'a> SignalView<'a>
Sourcepub fn from_complex_tensor(tensor: &'a ComplexFTensor) -> SignalView<'a>
pub fn from_complex_tensor(tensor: &'a ComplexFTensor) -> SignalView<'a>
Borrows the native storage of a canonical complex tensor.
Sourcepub fn from_real_tensor(tensor: &'a F64Tensor) -> SignalView<'a>
pub fn from_real_tensor(tensor: &'a F64Tensor) -> SignalView<'a>
Borrows the native storage of a canonical f64 tensor.
Sourcepub fn physical_len(self) -> usize
pub fn physical_len(self) -> usize
Physical number of cells in the borrowed storage.
Trait Implementations§
Source§impl<'a> Clone for SignalView<'a>
impl<'a> Clone for SignalView<'a>
Source§fn clone(&self) -> SignalView<'a>
fn clone(&self) -> SignalView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SignalView<'a>
Auto Trait Implementations§
impl<'a> Freeze for SignalView<'a>
impl<'a> RefUnwindSafe for SignalView<'a>
impl<'a> Send for SignalView<'a>
impl<'a> Sync for SignalView<'a>
impl<'a> Unpin for SignalView<'a>
impl<'a> UnsafeUnpin for SignalView<'a>
impl<'a> UnwindSafe for SignalView<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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