diff options
author | Determinant <[email protected]> | 2015-05-19 15:01:38 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-19 15:01:38 +0800 |
commit | e9b8855c894daa4e6749acfe891f68b3ed8ed481 (patch) | |
tree | 5a3ea5e89bd475dc4312d379ffc7bf9121862dbb /mmatrix_example.lua | |
parent | 9b6606504241f27a9d42b96f535bf5f2c2918161 (diff) |
add double precision matrix implementation
Diffstat (limited to 'mmatrix_example.lua')
-rw-r--r-- | mmatrix_example.lua | 9 |
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) |