Skip to main content

hadamard_blocked_rows

Function hadamard_blocked_rows 

Source
pub fn hadamard_blocked_rows(
    data: &mut [f32],
    rows: usize,
    cols: usize,
    seed: Option<i64>,
    inverse: bool,
) -> Result<(), EngineError>
Expand description

Apply blocked Hadamard on rows of a row-major [rows, cols] matrix. inverse=false → per-block H@S; inverse=trueS@H.

Tile sizes default to greedy pow2_tile_sizes (Python pow2_tile_blocks).