pub struct EllMatrix {
pub n_rows: usize,
pub n_cols: usize,
pub max_nnz_per_row: usize,
pub col_idx: Vec<usize>,
pub values: Vec<f64>,
}Expand description
ELLPACK-format sparse matrix: rows padded to max_nnz_per_row.
Fields§
§n_rows: usize§n_cols: usize§max_nnz_per_row: usize§col_idx: Vec<usize>Column indices, row-major [n_rows × max_nnz_per_row].
values: Vec<f64>Values, row-major [n_rows × max_nnz_per_row].
Implementations§
Auto Trait Implementations§
impl Freeze for EllMatrix
impl RefUnwindSafe for EllMatrix
impl Send for EllMatrix
impl Sync for EllMatrix
impl Unpin for EllMatrix
impl UnsafeUnpin for EllMatrix
impl UnwindSafe for EllMatrix
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more