Skip to main content

program_row_kernel

Function program_row_kernel 

Source
pub fn program_row_kernel<const K: usize, P: RowProgram<K> + ?Sized>(
    prog: &P,
    row: usize,
) -> Result<(f64, [f64; K], [[f64; K]; K]), String>
Expand description

Derive the row_kernel channel (nll, ∇, H) from a RowProgram at the value/gradient/Hessian scalar crate::jet_scalar::Order2, WITHOUT materialising any third / fourth tensor.