Skip to main content

mul_quat_partial

Function mul_quat_partial 

Source
fn mul_quat_partial(
    x_bmhr: Tensor<4>,
    f_bhj4: Tensor<4>,
    tail_bh: Tensor<2>,
    rope_width: usize,
) -> Tensor<4>
Expand description

Left-multiply the first rope_width state-rank entries of x by the (not necessarily unit) quaternion f per block, and scale the pass-through entries by the real scalar tail — the quaternion analogue of mul_complex_partial.