diff options
Diffstat (limited to 'matrix_example.lua')
-rw-r--r-- | matrix_example.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/matrix_example.lua b/matrix_example.lua deleted file mode 100644 index 361e126..0000000 --- a/matrix_example.lua +++ /dev/null @@ -1,16 +0,0 @@ -t = nerv.FloatMatrix(2, 3) -print(t:get_elem(1)) -t:set_elem(1, 3.23432); -print(t:get_elem(1)) -print(t) -t = nerv.FloatMatrix(10, 20) -t:set_elem(1, 3.34); -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) |