pub struct Symbols(/* private fields */);Expand description
Complex symbols at one sample per symbol, one row per stream.
Implementations§
Source§impl Symbols
impl Symbols
Sourcepub fn stream(&self, i: usize) -> &[C64] ⓘ
pub fn stream(&self, i: usize) -> &[C64] ⓘ
Stream i as a slice (the layout is always standard).
Sourcepub fn stream_view(&self, i: usize) -> ArrayView1<'_, C64>
pub fn stream_view(&self, i: usize) -> ArrayView1<'_, C64>
Stream i as an ndarray view.
Sourcepub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, C64>
pub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, C64>
Stream i as a mutable ndarray view.
Sourcepub fn set_stream(&mut self, x: &[C64])
pub fn set_stream(&mut self, x: &[C64])
Make self the single stream x, reusing its storage when the length is
unchanged (ADR 0011).
Sourcepub fn assign(&mut self, a: &Array2<C64>)
pub fn assign(&mut self, a: &Array2<C64>)
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 [C64] ⓘ
pub fn stream_mut(&mut self, i: usize) -> &mut [C64] ⓘ
Stream i as a mutable slice.
Sourcepub fn as_slice_mut(&mut self) -> &mut [C64] ⓘ
pub fn as_slice_mut(&mut self) -> &mut [C64] ⓘ
All the elements, stream after stream, mutable.
Sourcepub fn as_array_mut(&mut self) -> &mut Array2<C64>
pub fn as_array_mut(&mut self) -> &mut Array2<C64>
The underlying array, mutable.
Trait Implementations§
impl StructuralPartialEq for Symbols
Auto Trait Implementations§
impl Forget for Symbols
impl Freeze for Symbols
impl RefUnwindSafe for Symbols
impl Send for Symbols
impl Sync for Symbols
impl Unpin for Symbols
impl UnsafeUnpin for Symbols
impl UnwindSafe for Symbols
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