From e021cf74ab461bc72ecc42543852d119bfcd4549 Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Thu, 25 Apr 2019 10:09:23 +0100 Subject: add dot method --- Wrappers/Python/ccpi/framework/BlockDataContainer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Wrappers/Python') 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) -- cgit v1.2.3