Feed on
Posts
Comments

to write out a matrix from python’s numpy:

import numpy

numpy.savetxt(matrix_filename,matrix_object)

to read a matrix from numpy:

import numpy

matrix_object = numpy.genfromtxt(matrix_filename)


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS