#NEWLINE# def max( self , axis = None ) : #NEWLINE# #INDENT# '\n        The maximum value in matrix. If axis is not None, each maximum value along the axis.\n        :param axis: None, 0, or 1.\n        :return: Maximum value(s)\n        ' #NEWLINE# if ( axis is None ) : #NEWLINE# #INDENT# return self . matrix . max ( axis ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( axis == 0 ) : #NEWLINE# #INDENT# return self . _new_instance ( self . matrix . max ( axis ) , row2word = [ '' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( axis == 1 ) : #NEWLINE# #INDENT# return self . _new_instance ( self . matrix . max ( axis ) , col2word = [ '' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Axis can only be None, 1, or 0' )