#NEWLINE# def readMatrix( self , node ) : #NEWLINE# #INDENT# rows = [ ] #NEWLINE# for c in self . getChildrenOf ( node ) : #NEWLINE# #INDENT# rows . append ( self . readDoubles ( c ) ) #NEWLINE# #UNINDENT# if ( len ( rows ) == 0 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# res = zeros ( ( len ( rows ) , len ( rows [ 0 ] ) ) ) #NEWLINE# for ( i , r ) in enumerate ( rows ) : #NEWLINE# #INDENT# res [ i ] = c #NEWLINE# #UNINDENT# return res