Re: [Numpy-discussion] Porting strategy for py3k

2009-04-24 Thread Dag Sverre Seljebotn
David Cournapeau wrote: > Christopher Barker wrote: >> Though I'm a bit surprised that that's not how the print function is >> written in the first place (maybe it is in py3k -- I'm testing on 2.5) >> > > That's actually how it works as far as I can tell. The thing with > removing those print

[Numpy-discussion] Keeping track of backports in Trac

2009-04-24 Thread Pauli Virtanen
Hi, Is it possible to assign a bug to multiple versions in Trac? Now that we have active stable branches eg. 0.7.x in Scipy, it would be useful if it was easy to track what to backport. For example, having a Trac custom field "Pending backports", either a boolean or a string listing the branch

Re: [Numpy-discussion] patching docs

2009-04-24 Thread Joe Harrington
william ratcliff writes: > Hi! I'd like to suggest a patch for: > numpy > .core > .fromnumeric .put > The docstring contains: > for i, val in zip(ind

Re: [Numpy-discussion] patching docs

2009-04-24 Thread william ratcliff
Actually, if I look here: http://docs.scipy.org/numpy/docs/numpy.core.fromnumeric.put/ The text that appears in by browser is: *put(a, ind, v, mode='raise')* Changes specific elements of one array by replacing from another array. The indexing works on the flattened target array, put

Re: [Numpy-discussion] patching docs

2009-04-24 Thread Stéfan van der Walt
2009/4/24 william ratcliff : > Actually, if I look here: > http://docs.scipy.org/numpy/docs/numpy.core.fromnumeric.put/ > > The text that appears in by browser is: > > put(a, ind, v, mode='raise') > > Changes specific elements of one array by replacing from another array. This is pretty cryptic.

[Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Michael S. Gilbert
Hello, I've been working with numpy's poly1d class recently, and it would be very useful to me if the class worked with fractions instead of floats (since I'm encountering quantities that often mostly cancel out, which lead to instabilities in my algorithms; hence it would be useful to use fractio

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
Hi, Fri, 24 Apr 2009 12:52:33 -0400, Michael S. Gilbert kirjoitti: > I've been working with numpy's poly1d class recently, and it would be > very useful to me if the class worked with fractions instead of floats > (since I'm encountering quantities that often mostly cancel out, which > lead to ins

Re: [Numpy-discussion] inplace matrix multiplication

2009-04-24 Thread David Warde-Farley
On 9-Jan-09, at 4:31 PM, Robert Kern wrote: > You can't in numpy. With scipy.linalg.fblas.dgemm() and the right > arguments, you can. Make sure your output array is Fortran-ordered, however, otherwise copies will be made. David ___ Numpy-discussion m

Re: [Numpy-discussion] patching docs

2009-04-24 Thread william ratcliff
Thanks! I was up pretty late last night and wanted to make sure I hadn't missed something while sleep deprived! Cheers, William 2009/4/24 Stéfan van der Walt > 2009/4/24 william ratcliff : > > Actually, if I look here: > > http://docs.scipy.org/numpy/docs/numpy.core.fromnumeric.put/ > > > > Th

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Charles R Harris
On Fri, Apr 24, 2009 at 11:09 AM, Pauli Virtanen wrote: > Hi, > > Fri, 24 Apr 2009 12:52:33 -0400, Michael S. Gilbert kirjoitti: > > I've been working with numpy's poly1d class recently, and it would be > > very useful to me if the class worked with fractions instead of floats > > (since I'm enco

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
Fri, 24 Apr 2009 12:49:36 -0600, Charles R Harris wrote: [clip] > I tend to think that this sort of thing belongs to a specialized package > like sympy or sage. The polynomial class in numpy is a quick and dirty > convenience class for numerical computation. Well, Numpy's poly1d will work fine wit

Re: [Numpy-discussion] patching docs

2009-04-24 Thread Joe Harrington
> 2009/4/24 william ratcliff : > > Actually, if I look here: > > http://docs.scipy.org/numpy/docs/numpy.core.fromnumeric.put/ > > > > The text that appears in by browser is: > > > > put(a, ind, v, mode='raise') > > > > Changes specific elements of one array by replacing from another array. > This

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
Fri, 24 Apr 2009 19:04:50 +, Pauli Virtanen wrote: > Well, Numpy's poly1d will work fine with minor changes, so I see no > reason not to make sure we're consistent with duck typing. polyint fixed in r6883, there doesn't seem anything else to fix: >>> import numpy as np >>> from fractions impo

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Stéfan van der Walt
2009/4/24 Pauli Virtanen : > polyint fixed in r6883, there doesn't seem anything else to fix: > import numpy as np from fractions import Fraction a = np.poly1d([Fraction(4,19), Fraction(3,19), Fraction(2,19), 0]) Very cool. I think we should mention thi example in the docs as well?

[Numpy-discussion] after building from source, how to register numpy with synaptic?

2009-04-24 Thread Chris Colbert
Like the subject says, is there a way to register numpy with synaptic after building numpy from source? I would like to snag matplotlib from the ubuntu repos, but it won't let me without also getting numpy and its dependency, which would ruin all the work I did building numpy on my machine. This

Re: [Numpy-discussion] after building from source, how to register numpy with synaptic?

2009-04-24 Thread Robert Kern
On Fri, Apr 24, 2009 at 21:11, Chris Colbert wrote: > Like the subject says, is there a way to register numpy with synaptic after > building numpy from source? > > I would like to snag matplotlib from the ubuntu repos, but it won't let me > without also getting numpy and its dependency, which woul

Re: [Numpy-discussion] after building from source, how to register numpy with synaptic?

2009-04-24 Thread Charles R Harris
On Fri, Apr 24, 2009 at 8:11 PM, Chris Colbert wrote: > Like the subject says, is there a way to register numpy with synaptic after > building numpy from source? > > I would like to snag matplotlib from the ubuntu repos, but it won't let me > without also getting numpy and its dependency, which w

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread josef . pktd
2009/4/24 Stéfan van der Walt : > 2009/4/24 Pauli Virtanen : >> polyint fixed in r6883, there doesn't seem anything else to fix: >> > import numpy as np > from fractions import Fraction > a = np.poly1d([Fraction(4,19), Fraction(3,19), Fraction(2,19), 0]) > > Very cool.  I think we shoul

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Robert Kern
On Fri, Apr 24, 2009 at 21:42, wrote: > 2009/4/24 Stéfan van der Walt : >> 2009/4/24 Pauli Virtanen : >>> polyint fixed in r6883, there doesn't seem anything else to fix: >>> >> import numpy as np >> from fractions import Fraction >> a = np.poly1d([Fraction(4,19), Fraction(3,19), Frac

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread josef . pktd
On Fri, Apr 24, 2009 at 10:43 PM, Robert Kern wrote: > On Fri, Apr 24, 2009 at 21:42,   wrote: >> 2009/4/24 Stéfan van der Walt : >>> 2009/4/24 Pauli Virtanen : polyint fixed in r6883, there doesn't seem anything else to fix: >>> import numpy as np >>> from fractions import Fract

Re: [Numpy-discussion] after building from source, how to register numpy with synaptic?

2009-04-24 Thread David Warde-Farley
On 24-Apr-09, at 10:11 PM, Chris Colbert wrote: > Like the subject says, is there a way to register numpy with > synaptic after building numpy from source? > > I would like to snag matplotlib from the ubuntu repos, but it won't > let me without also getting numpy and its dependency, which woul