mdot function in common.py

This commit is contained in:
Alexander Mordvintsev 2012-07-11 05:07:00 +00:00
parent c52d620817
commit 84281d284e

View File

@ -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)