#NEWLINE# def matrixAddition( self , matrix ) : #NEWLINE# #INDENT# if ( ( self . rows != b . rows ) or ( self . cols != matrix . cols ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'Mismatched Dimensions' ) #NEWLINE# #UNINDENT# summation = [ ] #NEWLINE# for ( a , b ) in zip ( self . array , matrix . array ) : #NEWLINE# #INDENT# summation . append ( ( a + b ) ) #NEWLINE# #UNINDENT# return summation