diff options
author | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-25 10:09:23 +0100 |
---|---|---|
committer | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-25 10:09:23 +0100 |
commit | e021cf74ab461bc72ecc42543852d119bfcd4549 (patch) | |
tree | fc84f5633c5c9071905db7d9aba4bdcc6f364bb9 | |
parent | f1da1e2bda23a978c92b91a5d533c7d4b331acc3 (diff) | |
download | framework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.gz framework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.bz2 framework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.xz framework-e021cf74ab461bc72ecc42543852d119bfcd4549.zip |
add dot method
-rwxr-xr-x | Wrappers/Python/ccpi/framework/BlockDataContainer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Wrappers/Python/ccpi/framework/BlockDataContainer.py b/Wrappers/Python/ccpi/framework/BlockDataContainer.py index 823a1bd..166014b 100755 --- a/Wrappers/Python/ccpi/framework/BlockDataContainer.py +++ b/Wrappers/Python/ccpi/framework/BlockDataContainer.py @@ -443,10 +443,10 @@ class BlockDataContainer(object): '''Inline truedivision''' return self.__idiv__(other) -# def dot(self, other): + def dot(self, other): # -# tmp = [ self.containers[i].dot(other.containers[i]) for i in range(self.shape[0])] -# return sum(tmp) + tmp = [ self.containers[i].dot(other.containers[i]) for i in range(self.shape[0])] + return sum(tmp) |