diff options
author | Determinant <[email protected]> | 2015-06-11 09:08:39 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-06-11 09:08:39 +0800 |
commit | bff401bc996962396f893e9b4fbb3535dfd27f93 (patch) | |
tree | 63913da0efb6b7088616509ef654a5434210612b /matrix/init.lua | |
parent | bc45af0e2a1e20444a3067320d4cfb717669eef4 (diff) |
fix #23
Diffstat (limited to 'matrix/init.lua')
-rw-r--r-- | matrix/init.lua | 2 |
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 |