pub struct LazyMatrixSource<T: Scalar, F> { /* private fields */ }Expand description
Callback-backed lazy matrix source.
Evaluates matrix blocks on demand via a user-supplied closure, avoiding full materialization. The closure fills a column-major output buffer for a given set of rows and columns.
Implementations§
Trait Implementations§
Source§impl<T: Scalar, F> CandidateMatrixSource<T> for LazyMatrixSource<T, F>
impl<T: Scalar, F> CandidateMatrixSource<T> for LazyMatrixSource<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for LazyMatrixSource<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for LazyMatrixSource<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for LazyMatrixSource<T, F>where
F: Send,
impl<T, F> Sync for LazyMatrixSource<T, F>where
F: Sync,
impl<T, F> Unpin for LazyMatrixSource<T, F>
impl<T, F> UnsafeUnpin for LazyMatrixSource<T, F>where
F: UnsafeUnpin,
impl<T, F> UnwindSafe for LazyMatrixSource<T, F>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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