From f48dc493b5b77fd4e4472dd6c78b7542a4884129 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 14 May 2015 15:01:55 +0800 Subject: add basic matrix implementation --- matrix_example.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 matrix_example.lua (limited to 'matrix_example.lua') diff --git a/matrix_example.lua b/matrix_example.lua new file mode 100644 index 0000000..1ff129d --- /dev/null +++ b/matrix_example.lua @@ -0,0 +1,7 @@ +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) +print(t) -- cgit v1.2.3