pub fn matvec(mat: &[Fixed], vec: &[Fixed], cols: usize) -> Vec<Fixed>
Matrix-vector multiply: out[i] = dot(mat[i], vec). Matrix is row-major: mat.len() = rows * cols.