pub struct DenseMatrixSource<'a, T: Scalar> { /* private fields */ }Expand description
Borrowed dense matrix source with column-major layout.
Wraps a column-major data slice for use with pivot kernels.
Implementations§
Source§impl<'a, T: Scalar> DenseMatrixSource<'a, T>
impl<'a, T: Scalar> DenseMatrixSource<'a, T>
Sourcepub fn from_column_major(data: &'a [T], nrows: usize, ncols: usize) -> Self
pub fn from_column_major(data: &'a [T], nrows: usize, ncols: usize) -> Self
Create a dense source from a column-major slice.
Trait Implementations§
Source§impl<T: Scalar> CandidateMatrixSource<T> for DenseMatrixSource<'_, T>
impl<T: Scalar> CandidateMatrixSource<T> for DenseMatrixSource<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for DenseMatrixSource<'a, T>
impl<'a, T> RefUnwindSafe for DenseMatrixSource<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DenseMatrixSource<'a, T>
impl<'a, T> Sync for DenseMatrixSource<'a, T>
impl<'a, T> Unpin for DenseMatrixSource<'a, T>
impl<'a, T> UnsafeUnpin for DenseMatrixSource<'a, T>
impl<'a, T> UnwindSafe for DenseMatrixSource<'a, T>where
T: RefUnwindSafe,
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