Example #1
0
 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)
Example #2
0
 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)