#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# rmatrix = self . get_input ( 'rmatrix' ) #NEWLINE# mlist = list ( rmatrix ) #NEWLINE# nrows = rmatrix . nrow #NEWLINE# ncols = ( len ( mlist ) // nrows ) #NEWLINE# olist = [ ] #NEWLINE# for row in xrange ( nrows ) : #NEWLINE# #INDENT# olist . append ( mlist [ ( row * ncols ) : ( ( row + 1 ) * ncols ) ] ) #NEWLINE# #UNINDENT# self . set_output ( 'list' , olist )