Definition at line 95 of file abcd_optics.py. 00095 : #addition runs left-to-right 00096 "optic1+optic2 is an optic representing the left-hand optic followed by the right i.e. algebraic semantics" 00097 if isinstance(other, optic): 00098 mat=Numeric.dot(other.mat, self.mat) 00099 return optic(mat, "Composite Optic: \n"+Numeric.array_str(mat, precision=3, suppress_small=1) ) 00100 else: 00101 return Numeric.dot(other, self.mat) 00102
|