[−][src]Struct mrslac::matrix::sparse_crs::SparseCRS
Implementations
impl SparseCRS
[src]
pub fn new(rows: usize, columns: usize) -> SparseCRS
[src]
creates a new matrix
pub fn resize(&mut self, rows: usize, columns: usize)
[src]
resizes the vector
Trait Implementations
impl BasicReadableMatrix for SparseCRS
[src]
fn get_rows(&self) -> usize
[src]
returns the number of rows in the matrix
fn get_columns(&self) -> usize
[src]
returns the number of columns in the matrix
fn get_element(&self, i: usize, j: usize) -> f32
[src]
returns the (i,j)-th element of the matrix
impl BasicWriteableMatrix for SparseCRS
[src]
fn set_element(&mut self, i: usize, j: usize, new_value: f32)
[src]
sets the (i,j)-th element of the sparse matrix
fn set_zero(&mut self)
[src]
sets all elements to zero
impl SparseMatrix for SparseCRS
[src]
Auto Trait Implementations
impl RefUnwindSafe for SparseCRS
impl Send for SparseCRS
impl Sync for SparseCRS
impl Unpin for SparseCRS
impl UnwindSafe for SparseCRS
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>,