Skip to main content

Order2Batch

Type Alias Order2Batch 

Source
pub type Order2Batch<const K: usize> = Order2Lane<f64x4, K>;
Expand description

The 4-rows-per-pass batched order-≤2 scalar (wide::f64x4 lanes).

Aliased Type§

pub struct Order2Batch<const K: usize> {
    pub v: f64x4,
    pub g: [f64x4; K],
    pub h: [[f64x4; K]; K],
}

Fields§

§v: f64x4

Value channel (one entry per lane/row).

§g: [f64x4; K]

Gradient channel ∂ℓ/∂p_a.

§h: [[f64x4; K]; K]

Hessian channel ∂²ℓ/∂p_a∂p_b (symmetric).

Implementations§

Source§

impl<const K: usize> Order2Batch<K>

Source

pub fn lane(&self, i: usize) -> Order2<K>

Extract lane i’s (v, g, H) as a production Order2<K> scalar. Lane i is to_bits-identical to evaluating the same program at Order2<K> on row i (see batch_tests).