Skip to content

Commit

Permalink
issue #210 fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Feb 15, 2021
1 parent 9ced7e2 commit 1e8597d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/performance/matmul1_ravi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
matrix = {}

function matrix.T(a: table)
local m: integer, n: integer, x: table = #a, #a[1], {};
local m: integer, n: integer, x: table = #a, @integer(#a[1]), {};
for i = 1, n do
local xi: number[] = table.numarray(n, 0.0)
x[i] = xi
Expand All @@ -14,7 +14,7 @@ end

function matrix.mul(a: table, b: table)
assert(@integer(#a[1]) == #b);
local m: integer, n: integer, p: integer, x: table = #a, #a[1], #b[1], {};
local m: integer, n: integer, p: integer, x: table = #a, @integer(#a[1]), @integer(#b[1]), {};
local c: table = matrix.T(b); -- transpose for efficiency
for i = 1, m do
local xi: number[] = table.numarray(p, 0.0)
Expand Down

0 comments on commit 1e8597d

Please sign in to comment.