From 84281d284e83765fd3ebfbbdf1ef106f016e0c89 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Wed, 11 Jul 2012 05:07:00 +0000 Subject: [PATCH] mdot function in common.py --- samples/python2/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/python2/common.py b/samples/python2/common.py index e9b55fe46b..0f332b6d0f 100644 --- a/samples/python2/common.py +++ b/samples/python2/common.py @@ -195,3 +195,6 @@ def mosaic(w, imgs): def getsize(img): h, w = img.shape[:2] return w, h + +def mdot(*args): + return reduce(np.dot, args)