We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01c70d commit c4c51eaCopy full SHA for c4c51ea
matmul/matmul-native.jl
@@ -7,11 +7,11 @@ function matgen(n, seed)
7
end
8
9
function calc(n)
10
- n = round(Int, n / 2) * 2
11
- a = matgen(n, 1.0)
12
- b = matgen(n, 2.0)
+ n = n ÷ 2 * 2
+ a = matgen(n, 1)
+ b = matgen(n, 2)
13
c = a * b
14
- c[Int(n / 2)+1, Int(n / 2)+1]
+ c[n÷2+1, n÷2+1]
15
16
17
function notify(msg)
matmul/matmul.jl
@@ -20,11 +20,11 @@ function mul(a, b)
20
21
22
23
24
25
26
c = mul(a, b)
27
28
29
30
0 commit comments