aboutsummaryrefslogtreecommitdiff
path: root/mmatrix_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 /mmatrix_example.lua
parent9b6606504241f27a9d42b96f535bf5f2c2918161 (diff)
add double precision matrix implementation
Diffstat (limited to 'mmatrix_example.lua')
-rw-r--r--mmatrix_example.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/mmatrix_example.lua b/mmatrix_example.lua
new file mode 100644
index 0000000..5b34779
--- /dev/null
+++ b/mmatrix_example.lua
@@ -0,0 +1,9 @@
+t = nerv.FloatMMatrix(5, 10)
+a = t[1]
+for i = 0, 4 do
+ for j = 0, 9 do
+ t[i][j] = i + j
+ end
+end
+print(t)
+print(a)