Definition at line 87 of file abcd_optics.py. 00087 : 00088 "optic2*optic1 is an optic representing the right-hand optic followed by the left i.e. left matrix multiplication semantics" 00089 if isinstance(other, optic): 00090 mat=Numeric.dot(self.mat, other.mat) 00091 return optic(mat , "Composite Optic: \n"+Numeric.array_str(mat, precision=3, suppress_small=1)) 00092 else: 00093 return Numeric.dot(self.mat, other) 00094 def __add__(self, other): #addition runs left-to-right
|