pub fn apply_rotary(
x: &mut [f32],
row_len: usize,
rope_dim: usize,
pos: &[usize],
fc: &[(f32, f32)],
inverse: bool,
)Expand description
2026-09-25: Rotate the last rope_dim elements of each row_len-wide row of
x, row r at position pos[r] (negated angle when inverse); adjacent
pairs are complex numbers, multiplied in f32, written back bf16.