'Applies the given function to each item in the matrix.'

def map(self, function=(lambda item: item)):

    for (i, row) in enumerate(self):
        for (j, item) in enumerate(row):
            row[j] = function(item)
