[−][src]Struct mrslac::vector::sparse_cs::SparseCS
Implementations
impl SparseCS
[src]
pub fn new(col: usize) -> SparseCS
[src]
creates a new vector
pub fn set_size(&mut self, new_size: usize)
[src]
resizes the vector
Trait Implementations
impl BasicReadableVector for SparseCS
[src]
fn get_size(&self) -> usize
[src]
returns the vector's size
fn get_element(&self, i: usize) -> f32
[src]
returns the i-th element of the sparse vector
impl BasicWriteableVector for SparseCS
[src]
fn set_element(&mut self, i: usize, value: f32)
[src]
sets the i-th element of the sparse vector
fn set_zero(&mut self)
[src]
sets all elements to zero
impl SparseVector for SparseCS
[src]
Auto Trait Implementations
impl RefUnwindSafe for SparseCS
impl Send for SparseCS
impl Sync for SparseCS
impl Unpin for SparseCS
impl UnwindSafe for SparseCS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,