diff options
author | Determinant <[email protected]> | 2015-06-16 12:46:41 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-06-16 12:46:41 +0800 |
commit | 2ab9610a4fff798c1668cdc041515256fa813865 (patch) | |
tree | 3450e26ef7ea5eaeec870bbddb3c33c512320a6e /matrix | |
parent | 341b8b8c57cc4ee6f3fb940f00d9c8265e0b42a5 (diff) | |
parent | c3db7ffba45b7e4d0a1d76281e187b3f88129db9 (diff) |
Merge branch 'master' of https://github.com/Determinant/nerv
Diffstat (limited to 'matrix')
-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 |