diff --git a/samples/python2/common.py b/samples/python2/common.py index e9b55fe46..0f332b6d0 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)