Re: [Numpy-discussion] saving the lower half of matrix

2013-06-17 Thread Matthew Brett
Hi, On Mon, Jun 17, 2013 at 12:07 PM, Bala subramanian wrote: > Friends, > I have to save only the lower half of a symmetric matrix to a file. I used > numpy.tril to extract the lower half. However when i use 'numpy.savetxt', > numpy saves the whole matrix (with upper half values replaced as zero

Re: [Numpy-discussion] saving the lower half of matrix

2013-06-17 Thread Kumar Appaiah
On Mon, Jun 17, 2013 at 01:07:34PM +0200, Bala subramanian wrote: >Friends, >I have to save only the lower half of a symmetric matrix to a file. I used >numpy.tril to extract the lower half. However when i use 'numpy.savetxt', >numpy saves the whole matrix (with upper half values re

[Numpy-discussion] saving the lower half of matrix

2013-06-17 Thread Bala subramanian
Friends, I have to save only the lower half of a symmetric matrix to a file. I used numpy.tril to extract the lower half. However when i use 'numpy.savetxt', numpy saves the whole matrix (with upper half values replaced as zeros) rather than only the lower half. Any better idea to achieve this. as