aboutsummaryrefslogtreecommitdiff
path: root/cumatrix_example.lua
blob: 4b6fb4a752e221cae3df3b2c7b87404667303cfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
t = nerv.FloatCuMatrix(10, 20)
print(t)
a = t[1]
for i = 0, 9 do
    for j = 0, 19 do
        t[i][j] = i + j
    end
end
print(t)
print(a)