[Numpy-discussion] reshape

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Nov 6 13:59:47 EST 2008


On Thu, 6 Nov 2008 19:47:19 +0200
  "Nadav Horesh" <nadavh at visionsense.com> wrote:
> Can you clarify?
  
I have an array with a number of rows (nrows) and two 
columns.
The first column entries correspond to x_i, the second
column contains the corresponding values y_i = f(x_i)
That array should be written to a file where each line
consists 4 pairs (x_i, y_i=f(x_i)) except the last line
if nrows/8 is not an integer.

HTH,
          Nils


  



More information about the NumPy-Discussion mailing list