Re: [Numpy-discussion] Fancy indexing with masks

2011-09-27 Thread Han Genuit
2011/9/27 Olivier Delalleau > 2011/9/27 Zbigniew Jędrzejewski-Szmek > >> On 09/22/2011 12:09 PM, Pauli Virtanen wrote: >> > Thu, 22 Sep 2011 08:12:12 +0200, Han Genuit wrote: >> > [clip] >> >> I also noticed that it does strange things when using a list: >> >> >> > c[[True, False, True]] >>

Re: [Numpy-discussion] Fancy indexing with masks

2011-09-27 Thread Olivier Delalleau
2011/9/27 Zbigniew Jędrzejewski-Szmek > On 09/22/2011 12:09 PM, Pauli Virtanen wrote: > > Thu, 22 Sep 2011 08:12:12 +0200, Han Genuit wrote: > > [clip] > >> I also noticed that it does strange things when using a list: > >> > > c[[True, False, True]] > >> array([[3, 4, 5], > >> [0, 1,

Re: [Numpy-discussion] array.tofile() refuses to write into a StringIO

2011-09-27 Thread Chris.Barker
On 9/27/11 2:14 AM, oc-spam66 wrote: >> if you want to write to a string, why not use .tostring()? > > Because A.tostring() returns the binary data, while I would like the text > representation. > More precisely, I would like to use A.tofile(sep="\t"). I see -- I've always thought mingling bina

Re: [Numpy-discussion] replacing the mechanism for dispatching ufuncs

2011-09-27 Thread Darren Dale
What is the status of this proposal? On Wed, Jun 22, 2011 at 6:56 PM, Mark Wiebe wrote: > On Wed, Jun 22, 2011 at 4:57 PM, Darren Dale wrote: >> >> On Wed, Jun 22, 2011 at 1:31 PM, Mark Wiebe wrote: >> > On Wed, Jun 22, 2011 at 7:34 AM, Lluís wrote: >> >> >> >> Darren Dale writes: >> >> >> >>

Re: [Numpy-discussion] Fancy indexing with masks

2011-09-27 Thread Zbigniew Jędrzejewski-Szmek
On 09/22/2011 12:09 PM, Pauli Virtanen wrote: > Thu, 22 Sep 2011 08:12:12 +0200, Han Genuit wrote: > [clip] >> I also noticed that it does strange things when using a list: >> > c[[True, False, True]] >> array([[3, 4, 5], >> [0, 1, 2], >> [3, 4, 5]]) > > It casts the list with b

Re: [Numpy-discussion] array.tofile() refuses to write into a StringIO

2011-09-27 Thread oc-spam66
Ah, I found a workaround: savetxt() can work with a StringIO -> savetxt(file_buffer, A) This is only a workaround. I still think A.tofile() should be capable of writing into a StringIO. -- O.C. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy

Re: [Numpy-discussion] factorization updates in numpy

2011-09-27 Thread Pauli Virtanen
27.09.2011 10:40, Jaroslav Hajek kirjoitti: > I've been looking into options to do fast low-rank dense matrix > factorization updates (aka Matlab's qrupdate) with NumPy, but couldn't > find basically anything. Did I miss something? At the moment, we do not have equivalents to these routines. Howe

Re: [Numpy-discussion] array.tofile() refuses to write into a StringIO

2011-09-27 Thread oc-spam66
> if you want to write to a string, why not use .tostring()? Because A.tostring() returns the binary data, while I would like the text representation. More precisely, I would like to use A.tofile(sep="\t"). > Yes, this is a known shortcoming of .tofile(). Is it worth filing a bug report ? --

[Numpy-discussion] factorization updates in numpy

2011-09-27 Thread Jaroslav Hajek
hello, I've been looking into options to do fast low-rank dense matrix factorization updates (aka Matlab's qrupdate) with NumPy, but couldn't find basically anything. Did I miss something? A few years ago I wrote the qrupdate library http://sourceforge.net/projects/qrupdate/, and subsequently wra