pub struct Labels(/* private fields */);Expand description
The labels of symbols, one row per stream: the index $a \in \{0, \dots, M - 1\}$
of every symbol of an alphabet of $M$ (a chirp of chirp spread spectrum, a level of
continuous-phase modulation, a point of a constellation), the input and the
decisions of the waveforms that carry an index (Modulate<Labels>).
Implementations§
Source§impl Labels
impl Labels
Sourcepub fn stream(&self, i: usize) -> &[usize]
pub fn stream(&self, i: usize) -> &[usize]
Stream i as a slice (the layout is always standard).
Sourcepub fn stream_view(&self, i: usize) -> ArrayView1<'_, usize>
pub fn stream_view(&self, i: usize) -> ArrayView1<'_, usize>
Stream i as an ndarray view.
Sourcepub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, usize>
pub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, usize>
Stream i as a mutable ndarray view.
Sourcepub fn set_stream(&mut self, x: &[usize])
pub fn set_stream(&mut self, x: &[usize])
Make self the single stream x, reusing its storage when the length is
unchanged (ADR 0011).
Sourcepub fn assign(&mut self, a: &Array2<usize>)
pub fn assign(&mut self, a: &Array2<usize>)
Make self a copy of a, reusing its storage when the shape is
unchanged (ADR 0011).
Sourcepub fn stream_mut(&mut self, i: usize) -> &mut [usize]
pub fn stream_mut(&mut self, i: usize) -> &mut [usize]
Stream i as a mutable slice.
Sourcepub fn as_slice_mut(&mut self) -> &mut [usize]
pub fn as_slice_mut(&mut self) -> &mut [usize]
All the elements, stream after stream, mutable.
Sourcepub fn as_array_mut(&mut self) -> &mut Array2<usize>
pub fn as_array_mut(&mut self) -> &mut Array2<usize>
The underlying array, mutable.
Trait Implementations§
impl StructuralPartialEq for Labels
Auto Trait Implementations§
impl Freeze for Labels
impl RefUnwindSafe for Labels
impl Send for Labels
impl Sync for Labels
impl Unpin for Labels
impl UnsafeUnpin for Labels
impl UnwindSafe for Labels
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