Small fix
This commit is contained in:
parent
58d57b61f3
commit
cb7b54995b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue