pub struct DistributedCsr {
pub local_matrix: CsrMatrix<f64>,
pub partition: RowPartition,
pub ghost_rows: Vec<usize>,
}Expand description
A worker’s local view of a distributed CSR matrix.
local_matrix rows correspond to the global rows listed in
partition.local_rows (index 0 = partition.local_rows[0], etc.).
ghost_rows holds the global row indices of off-partition rows referenced
by at least one non-zero in the local rows.
Fields§
§local_matrix: CsrMatrix<f64>Local CSR matrix (only owned rows; columns are global indices).
partition: RowPartitionRow ownership information.
ghost_rows: Vec<usize>Global row indices that appear as column targets in the local rows but are owned by other workers — i.e. halo / ghost rows.
Trait Implementations§
Source§impl Clone for DistributedCsr
impl Clone for DistributedCsr
Source§fn clone(&self) -> DistributedCsr
fn clone(&self) -> DistributedCsr
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 DistributedCsr
impl RefUnwindSafe for DistributedCsr
impl Send for DistributedCsr
impl Sync for DistributedCsr
impl Unpin for DistributedCsr
impl UnsafeUnpin for DistributedCsr
impl UnwindSafe for DistributedCsr
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