I want to be able to iterate over the matrix to apply a function to each row. How can I do it for a Numpy matrix ?
While you should certainly provide more information, if you are trying to go through each row, you can just iterate with a for loop:
import numpy m = numpy.ones((3,5),dtype='int') for row in m: print str(row)