Small fix

This commit is contained in:
abux 2026-07-31 14:02:06 +01:00
parent 58d57b61f3
commit cb7b54995b

View file

@ -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;