pub struct CsrMatrix {
pub row_offsets: GpuRef<i32>,
pub col_indices: GpuRef<i32>,
pub values: GpuRef<f32>,
pub rows: i64,
pub cols: i64,
pub nnz: i64,
}Expand description
Legacy CSR sparse matrix in device memory — kept for back-compat with
callers built against F-9. Prefer [SparseMatrix] for new code.
Fields§
§row_offsets: GpuRef<i32>§col_indices: GpuRef<i32>§values: GpuRef<f32>§rows: i64§cols: i64§nnz: i64Trait Implementations§
Auto Trait Implementations§
impl Freeze for CsrMatrix
impl !RefUnwindSafe for CsrMatrix
impl Send for CsrMatrix
impl Sync for CsrMatrix
impl Unpin for CsrMatrix
impl UnsafeUnpin for CsrMatrix
impl !UnwindSafe for CsrMatrix
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