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: usizeNumber of rows.
n_cols: usizeNumber of columns.
max_nnz_per_row: usizeMaximum number of non-zeros per row (padding width).
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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