pub struct GpuPrecondCsr {
pub nrows: usize,
pub ncols: usize,
pub row_ptr: Vec<usize>,
pub col_idx: Vec<usize>,
pub values: Vec<f64>,
}Expand description
Sparse matrix in CSR format (row-major compressed), f64 values only.
This is a lightweight internal type used by the GPU preconditioner.
For the general sparse matrix API use crate::csr::CsrMatrix.
Fields§
§nrows: usizeNumber of rows.
ncols: usizeNumber of columns.
row_ptr: Vec<usize>Row pointers: row_ptr[i]..row_ptr[i+1] indexes row i.
col_idx: Vec<usize>Column indices of non-zeros.
values: Vec<f64>Non-zero values.
Implementations§
Trait Implementations§
Source§impl Clone for GpuPrecondCsr
impl Clone for GpuPrecondCsr
Source§fn clone(&self) -> GpuPrecondCsr
fn clone(&self) -> GpuPrecondCsr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GpuPrecondCsr
impl RefUnwindSafe for GpuPrecondCsr
impl Send for GpuPrecondCsr
impl Sync for GpuPrecondCsr
impl Unpin for GpuPrecondCsr
impl UnsafeUnpin for GpuPrecondCsr
impl UnwindSafe for GpuPrecondCsr
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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