From b0c999e1a840bda032b7616dd1cc45261610e73c Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 15 May 2015 02:47:53 +0800 Subject: use a global lua file to load others --- matrix/matrix.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'matrix/matrix.lua') diff --git a/matrix/matrix.lua b/matrix/matrix.lua index 7aa1f12..b9e4876 100644 --- a/matrix/matrix.lua +++ b/matrix/matrix.lua @@ -4,7 +4,9 @@ function nerv.FloatMatrix:__tostring__() local i = 0 local strt = {} for row = 0, nrow - 1 do +-- local rp = self[row] for col = 0, ncol - 1 do +-- table.insert(strt, string.format("%f ", rp[col])) table.insert(strt, string.format("%f ", self:get_elem(i))) i = i + 1 end -- cgit v1.2.3