#NEWLINE# def index( self , i , j ) : #NEWLINE# #INDENT# element = ( ( i * self . cols ) + j ) #NEWLINE# if ( element >= len ( self . array ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'Out of Bounds' ) #NEWLINE# #UNINDENT# return element