pub struct SparseVector<'a> { /* private fields */ }Implementations§
Source§impl<'a> SparseVector<'a>
impl<'a> SparseVector<'a>
pub fn new( size: usize, indices: &'a [u32], values: &'a [f32], index_base: IndexBase, ) -> Result<Self, SparseError>
pub const fn size(&self) -> usize
pub const fn nnz(&self) -> usize
pub const fn indices(&self) -> &'a [u32]
pub const fn values(&self) -> &'a [f32]
pub const fn index_base(&self) -> IndexBase
Trait Implementations§
Source§impl<'a> Clone for SparseVector<'a>
impl<'a> Clone for SparseVector<'a>
Source§fn clone(&self) -> SparseVector<'a>
fn clone(&self) -> SparseVector<'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 SparseVector<'a>
Auto Trait Implementations§
impl<'a> Freeze for SparseVector<'a>
impl<'a> RefUnwindSafe for SparseVector<'a>
impl<'a> Send for SparseVector<'a>
impl<'a> Sync for SparseVector<'a>
impl<'a> Unpin for SparseVector<'a>
impl<'a> UnsafeUnpin for SparseVector<'a>
impl<'a> UnwindSafe for SparseVector<'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