Back to Eqiora docs Skip to main content

RowLinearAction

Trait RowLinearAction 

pub trait RowLinearAction: Debug + Sync {
    // Required method
    fn apply_rows(
        &self,
        rows: Range<usize>,
        input: &[f64],
        output: &mut [f64],
    ) -> Result<(), Diagnostic>;
}
Description

Independent action on a contiguous subset of output rows.

This is an optional host-local execution capability, not a distributed layout. input is still the complete resident vector; output contains exactly rows.len() values corresponding to the ordered global row range. Disjoint ranges may be evaluated concurrently.

Required Methods§

fn apply_rows( &self, rows: Range<usize>, input: &[f64], output: &mut [f64], ) -> Result<(), Diagnostic>

Compute one contiguous output-row range without allocating.

§Errors

Returns a numerical diagnostic for an invalid range, shape mismatch, or non-finite result.

Implementors§