Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over rows in numpy matrix python

import numpy
m = numpy.ones((3,5),dtype='int')
for row in m:
  # do stuff with row
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #rows #numpy #matrix #python
ADD COMMENT
Topic
Name
3+5 =