Skip to content

lazymatrix::SparseColumnRef ​

LazyMatrix for Rust · 0.8.1

Source

rust
pub struct SparseColumnRef<'a, F>

A borrowed raw sparse column.

The view exposes the underlying matrix's stored row indices and raw values without copying. A normalized LazyColumn wrapping it has logical entries

text
stored row:   (value − center) / scale
implicit row: (0 − center) / scale

Thus, a centered logical column is generally dense even though the two borrowed slices contain only the underlying matrix's stored entries.

Inherent implementation ​

Source

rust
impl<'a, F> SparseColumnRef<'a, F>

row_indices ​

rust
pub fn row_indices(&self) -> &'a [usize]

Source

Row indices of the raw stored entries.

values ​

rust
pub fn values(&self) -> &'a [F]

Source

Raw stored values corresponding to Self::row_indices.

Implementation of Clone ​

Source

rust
impl<'a, F: core::clone::Clone> Clone for SparseColumnRef<'a, F>

clone ​

rust
fn clone(&self) -> Self

Source

Implementation of Copy ​

Source

rust
impl<'a, F: core::marker::Copy> Copy for SparseColumnRef<'a, F>

Implementation of Debug ​

Source

rust
impl<'a, F: core::fmt::Debug> Debug for SparseColumnRef<'a, F>

fmt ​

rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Source

Implementation of RawColumn ​

Source

rust
impl<F: Scalar> RawColumn<F> for SparseColumnRef<'_, F>

for_each_stored ​

rust
fn for_each_stored(&self, f: impl FnMut(usize, F))

Source

len ​

rust
fn len(&self) -> usize

Source

stored_len ​

rust
fn stored_len(&self) -> usize

Source

Implementation of Freeze ​

rust
impl<'a, F> Freeze for SparseColumnRef<'a, F> where &'a [F]: Freeze

Implementation of RefUnwindSafe ​

rust
impl<'a, F> RefUnwindSafe for SparseColumnRef<'a, F> where &'a [F]: RefUnwindSafe

Implementation of Send ​

rust
impl<'a, F> Send for SparseColumnRef<'a, F> where &'a [F]: Send

Implementation of Sync ​

rust
impl<'a, F> Sync for SparseColumnRef<'a, F> where &'a [F]: Sync

Implementation of Unpin ​

rust
impl<'a, F> Unpin for SparseColumnRef<'a, F> where &'a [F]: Unpin

Implementation of UnsafeUnpin ​

rust
impl<'a, F> UnsafeUnpin for SparseColumnRef<'a, F> where &'a [F]: UnsafeUnpin

Implementation of UnwindSafe ​

rust
impl<'a, F> UnwindSafe for SparseColumnRef<'a, F> where &'a [F]: UnwindSafe

Implementation of Any ​

rust
impl<T> Any for T where T: 'static + ?Sized

Implementation of Borrow ​

rust
impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut ​

rust
impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef ​

rust
impl<T> ByRef<T> for T

Implementation of CastableFrom ​

rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom ​

rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of CloneToUninit ​

rust
impl<T> CloneToUninit for T where T: Clone

Implementation of From ​

rust
impl<T> From<T> for T

Implementation of Imply ​

rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into ​

rust
impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither ​

rust
impl<T> IntoEither for T

Implementation of Pointable ​

rust
impl<T> Pointable for T

Implementation of Read ​

rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same ​

rust
impl<T> Same for T

Implementation of SupersetOf ​

rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToOwned ​

rust
impl<T> ToOwned for T where T: Clone

Implementation of TryFrom ​

rust
impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto ​

rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>

Released under the MIT and Apache 2.0 licenses.