shrinkage::MatrixDesign
Shrinkage for Rust · rust · 0.3.0
Source: src/problem/runtime.rs
pub struct MatrixDesign<'a, M: ?Sized, V = Vec<f64>>
A borrowed concrete LazyMatrix backend for runtime proximal composition.
V is the native vector accepted by the backend's products. This adapter retains static column access and never depends on a datafit or penalty type.
Inherent implementation
Source: src/problem/runtime.rs
impl<'a, M: ?Sized, V> MatrixDesign<'a, M, V>
new
Source: src/problem/runtime.rs
pub fn new(matrix: &'a M) -> Self
Borrow a backend; validation and normalization occur during fitting.
Source: src/problem/runtime.rs
impl<M, V> RuntimeDesign for MatrixDesign<'_, M, V> where M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized, <M as >::Error: Error + 'static, V: ProximalVector + 'static
prepare
Source: src/problem/runtime.rs
fn prepare(
&self,
normalization: Normalization,
centers: Option<&[f64]>,
scales: Option<&[f64]>,
fit_intercept: bool
) -> Result<Box<dyn ProximalDesign<Error = BackendError> + '_>, FitError<BackendError>>
Implementation of Freeze
impl<'a, M, V> Freeze for MatrixDesign<'a, M, V> where &'a M: Freeze, PhantomData<V>: Freeze, M: ?Sized
Implementation of RefUnwindSafe
impl<'a, M, V> RefUnwindSafe for MatrixDesign<'a, M, V> where &'a M: RefUnwindSafe, PhantomData<V>: RefUnwindSafe, M: ?Sized
Implementation of Send
impl<'a, M, V> Send for MatrixDesign<'a, M, V> where &'a M: Send, PhantomData<V>: Send, M: ?Sized
Implementation of Sync
impl<'a, M, V> Sync for MatrixDesign<'a, M, V> where &'a M: Sync, PhantomData<V>: Sync, M: ?Sized
Implementation of Unpin
impl<'a, M, V> Unpin for MatrixDesign<'a, M, V> where &'a M: Unpin, PhantomData<V>: Unpin, M: ?Sized
Implementation of UnsafeUnpin
impl<'a, M, V> UnsafeUnpin for MatrixDesign<'a, M, V> where &'a M: UnsafeUnpin, PhantomData<V>: UnsafeUnpin, M: ?Sized
Implementation of UnwindSafe
impl<'a, M, V> UnwindSafe for MatrixDesign<'a, M, V> where &'a M: UnwindSafe, PhantomData<V>: UnwindSafe, M: ?Sized
Implementation of Any
impl<T> Any for T where T: 'static + ?Sized
Implementation of Borrow
impl<T> Borrow<T> for T where T: ?Sized
Implementation of BorrowMut
impl<T> BorrowMut<T> for T where T: ?Sized
Implementation of ByRef
impl<T> ByRef<T> for T
Implementation of CastableFrom
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized
Implementation of CastableFrom
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized
Implementation of From
impl<T> From<T> for T
Implementation of Imply
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized
Implementation of Into
impl<T, U> Into<U> for T where U: From<T>
Implementation of IntoEither
impl<T> IntoEither for T
Implementation of Pointable
impl<T> Pointable for T
Implementation of Read
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized
Implementation of Same
impl<T> Same for T
Implementation of SupersetOf
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>
Implementation of TryFrom
impl<T, U> TryFrom<U> for T where U: Into<T>
Implementation of TryInto
impl<T, U> TryInto<U> for T where U: TryFrom<T>