aboutsummaryrefslogtreecommitdiff
path: root/matrix_example.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-19 15:01:38 +0800
committerDeterminant <[email protected]>2015-05-19 15:01:38 +0800
commite9b8855c894daa4e6749acfe891f68b3ed8ed481 (patch)
tree5a3ea5e89bd475dc4312d379ffc7bf9121862dbb /matrix_example.lua
parent9b6606504241f27a9d42b96f535bf5f2c2918161 (diff)
add double precision matrix implementation
Diffstat (limited to 'matrix_example.lua')
-rw-r--r--matrix_example.lua16
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)