def __mul__(A, B): # need to check types and multiple based on them.. try: F = Algebra() C = (F.mult(A._M, B._M)) except: raise PyValueException, "Inner dimension mismatch in matrix multiply." return None return ndarray(C)
def __mul__(A, B): # need to check types and multiple based on them.. try: F = Algebra(); C=(F.mult(A._M, B._M)); except: raise PyValueException, "Inner dimension mismatch in matrix multiply."; return None; return ndarray(C)