pub struct LaggedSampleWorkspace {
pub row_indexes: Vec<usize>,
pub values: Vec<f64>,
/* private fields */
}Expand description
Caller-owned scratch for repeated LaggedSamplePlan::prepare calls.
Fields§
§row_indexes: Vec<usize>Reused row-index buffer (length = n_effective).
values: Vec<f64>Column-major gathered values (ncols * n).
Implementations§
Source§impl LaggedSampleWorkspace
impl LaggedSampleWorkspace
Sourcepub fn prepare(&mut self, n: usize, ncols: usize)
pub fn prepare(&mut self, n: usize, ncols: usize)
Ensure capacity for n rows and ncols columns (grows, never shrinks).
Sourcepub const fn capacity_n(&self) -> usize
pub const fn capacity_n(&self) -> usize
Peak row capacity retained.
Sourcepub const fn capacity_cols(&self) -> usize
pub const fn capacity_cols(&self) -> usize
Peak column capacity retained.
Trait Implementations§
Source§impl Clone for LaggedSampleWorkspace
impl Clone for LaggedSampleWorkspace
Source§fn clone(&self) -> LaggedSampleWorkspace
fn clone(&self) -> LaggedSampleWorkspace
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 LaggedSampleWorkspace
impl Debug for LaggedSampleWorkspace
Source§impl Default for LaggedSampleWorkspace
impl Default for LaggedSampleWorkspace
Source§fn default() -> LaggedSampleWorkspace
fn default() -> LaggedSampleWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LaggedSampleWorkspace
impl RefUnwindSafe for LaggedSampleWorkspace
impl Send for LaggedSampleWorkspace
impl Sync for LaggedSampleWorkspace
impl Unpin for LaggedSampleWorkspace
impl UnsafeUnpin for LaggedSampleWorkspace
impl UnwindSafe for LaggedSampleWorkspace
Blanket Implementations§
impl<T> Allocation for T
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