pub struct GradientWorkspace { /* private fields */ }Expand description
Reusable scratch buffers for GAMLSS gradient evaluation.
The workspace stores one per-observation score vector and one local
coefficient-gradient vector per parameter block. Reusing it avoids the
temporary Vec allocations that otherwise happen inside each gradient call.
Implementations§
Trait Implementations§
Source§impl Clone for GradientWorkspace
impl Clone for GradientWorkspace
Source§fn clone(&self) -> GradientWorkspace
fn clone(&self) -> GradientWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientWorkspace
impl Debug for GradientWorkspace
Source§impl Default for GradientWorkspace
impl Default for GradientWorkspace
Source§fn default() -> GradientWorkspace
fn default() -> GradientWorkspace
Returns the “default value” for a type. Read more
Source§impl PartialEq for GradientWorkspace
impl PartialEq for GradientWorkspace
Source§fn eq(&self, other: &GradientWorkspace) -> bool
fn eq(&self, other: &GradientWorkspace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GradientWorkspace
Auto Trait Implementations§
impl Freeze for GradientWorkspace
impl RefUnwindSafe for GradientWorkspace
impl Send for GradientWorkspace
impl Sync for GradientWorkspace
impl Unpin for GradientWorkspace
impl UnsafeUnpin for GradientWorkspace
impl UnwindSafe for GradientWorkspace
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