aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--matrix/init.lua2
1 files changed, 1 insertions, 1 deletions
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