(self)
return [[self[i,j] for j in range(self.__cols)] for i in range(self.__rows)]
Convert the matrix to a nested list.
Convert the matrix to a nested list.
Convert the matrix to a nested list .
def tolist(self):
        """
        Convert the matrix to a nested list.
        """
        return [[self[i,j] for j in range(self.__cols)] for i in range(self.__rows)]
def tolist ( self ) : return [ [ self [ i , j ] for j in range ( self . __cols ) ] for i in range ( self . __rows ) ]