pub struct MatrixDesign<'a, M: ?Sized, V = Vec<f64>> { /* private fields */ }Expand description
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.
Implementations§
Trait Implementations§
Source§impl<M, V> RuntimeDesign for MatrixDesign<'_, M, V>where
M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized,
M::Error: Error + 'static,
V: ProximalVector + 'static,
impl<M, V> RuntimeDesign for MatrixDesign<'_, M, V>where
M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized,
M::Error: Error + 'static,
V: ProximalVector + 'static,
Source§fn prepare(
&self,
normalization: Normalization,
centers: Option<&[f64]>,
scales: Option<&[f64]>,
fit_intercept: bool,
) -> Result<Box<dyn ProximalDesign<Error = BackendError> + '_>, FitError<BackendError>>
fn prepare( &self, normalization: Normalization, centers: Option<&[f64]>, scales: Option<&[f64]>, fit_intercept: bool, ) -> Result<Box<dyn ProximalDesign<Error = BackendError> + '_>, FitError<BackendError>>
Validate the design and prepare its normalized product oracle. Read more
Auto Trait Implementations§
impl<'a, M, V> Forget for MatrixDesign<'a, M, V>where
M: ?Sized,
impl<'a, M, V> Freeze for MatrixDesign<'a, M, V>
impl<'a, M, V> Move for MatrixDesign<'a, M, V>where
M: ?Sized,
impl<'a, M, V> RefUnwindSafe for MatrixDesign<'a, M, V>
impl<'a, M, V> Send for MatrixDesign<'a, M, V>
impl<'a, M, V> Sync for MatrixDesign<'a, M, V>
impl<'a, M, V> Unpin for MatrixDesign<'a, M, V>
impl<'a, M, V> UnsafeUnpin for MatrixDesign<'a, M, V>
impl<'a, M, V> UnwindSafe for MatrixDesign<'a, M, V>
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