summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2019-04-25 10:09:23 +0100
committerepapoutsellis <epapoutsellis@gmail.com>2019-04-25 10:09:23 +0100
commite021cf74ab461bc72ecc42543852d119bfcd4549 (patch)
treefc84f5633c5c9071905db7d9aba4bdcc6f364bb9
parentf1da1e2bda23a978c92b91a5d533c7d4b331acc3 (diff)
downloadframework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.gz
framework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.bz2
framework-e021cf74ab461bc72ecc42543852d119bfcd4549.tar.xz
framework-e021cf74ab461bc72ecc42543852d119bfcd4549.zip
add dot method
-rwxr-xr-xWrappers/Python/ccpi/framework/BlockDataContainer.py6
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)