summaryrefslogtreecommitdiff
path: root/matrix/init.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-16 12:46:41 +0800
committerDeterminant <[email protected]>2015-06-16 12:46:41 +0800
commit2ab9610a4fff798c1668cdc041515256fa813865 (patch)
tree3450e26ef7ea5eaeec870bbddb3c33c512320a6e /matrix/init.lua
parent341b8b8c57cc4ee6f3fb940f00d9c8265e0b42a5 (diff)
parentc3db7ffba45b7e4d0a1d76281e187b3f88129db9 (diff)
Merge branch 'master' of https://github.com/Determinant/nerv
Diffstat (limited to 'matrix/init.lua')
-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