def _mdot_r(a, b):
if type(a) == tuple:<EOL><INDENT>if len(a) > <NUM_LIT:1>:<EOL><INDENT>a = mdot(*a)<EOL><DEDENT>else:<EOL><INDENT>a = a[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>if type(b) == tuple:<EOL><INDENT>if len(b) > <NUM_LIT:1>:<EOL><INDENT>b = mdot(*b)<EOL><DEDENT>else:<EOL><INDENT>b = b[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return np.dot(a, b)<EOL>
Recursive helper for mdot