diff --git a/src/mat.zig b/src/mat.zig index 96d960d..589084c 100644 --- a/src/mat.zig +++ b/src/mat.zig @@ -126,9 +126,9 @@ pub fn Mat( /// ---------------------------------------------------- pub inline fn mulVec(self: Self, v: Vec(T, Col)) Vec(T, Row) { var result: [Row]T = undefined; - for (0..Row) |r| { + inline for (0..Row) |r| { var sum: T = @as(T, 0); - for (0..Col) |c| { + inline for (0..Col) |c| { sum += self.value[r][c] * v.value[c]; } result[r] = sum;