From bff401bc996962396f893e9b4fbb3535dfd27f93 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 11 Jun 2015 09:08:39 +0800 Subject: fix #23 --- matrix/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/init.lua b/matrix/init.lua index 9637391..7bbc6a4 100644 --- a/matrix/init.lua +++ b/matrix/init.lua @@ -42,7 +42,7 @@ function nerv.CuMatrix:__sub__(b) end function nerv.CuMatrix:__mul__(b) - c = self:create() + c = nerv.get_type(self.__typename)(self:nrow(), b:ncol()) c:mul(self, b, 1.0, 0.0, 'N', 'N') return c end -- cgit v1.2.3-70-g09d2