pub fn pad_rows(data: &[f32], inner: usize, upper: u64) -> Vec<f32>Expand description
Pad data (interpreted as [actual, inner] row-major) up to upper
rows by appending zeros. Returns a Vec<f32> of length
upper * inner. Companion of slice_rows for the
“compile at max, run at less” workflow with BucketedCompileCache.
Panics if data.len() is not a multiple of inner, if inner == 0,
or if data.len() / inner > upper.