Re: [Numpy-discussion] Failure building scipy.special.lambertw

2009-12-16 Thread Pauli Virtanen
Wed, 16 Dec 2009 02:09:45 +, Chris wrote:

 Building a current checkout of scipy on OSX 10.6 fails when trying to
 compile scipy.special.lambertw, giving the message:
 
 Warning: No configuration returned, assuming unavailable.
 
 The full failure is here:
 
 http://img.skitch.com/20091216-d4b8ueqh27g4fqwebu3e3wgfkq.jpg

npy_cabs et al. are defined in npy_math.h, and it seems you have an old 
version of that lying somewhere. Do you have an old version of Numpy 
installed at

/Library/Python/2.6/site-packages/numpy


___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] fsum

2009-12-16 Thread Alan G Isaac
Does NumPy have an equivalent to Python's math.fsum?

Thanks,
Alan Isaac
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Slicing slower than matrix multiplication?

2009-12-16 Thread denis
A general question, is there a collection of numpy code snippets as transformed 
by experts,
short of google site:mail.scipy.org/pipermail/numpy-discussion or the like ?

And a subquestion, does anyone have a list of algebraic identities for .T 
vstack etc ?
for a real example, to transform
 dots = np.vstack([ dot( x[j:j+4] .T, imatrix ) .T  for j in ...])

cheers
   -- denis

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Proposal for matrix_rank function in numpy

2009-12-16 Thread Skipper Seabold
On Tue, Dec 15, 2009 at 3:16 PM, Matthew Brett matthew.br...@gmail.com wrote:
 Hi,

 Is it reasonable to summarize that, to avoid confusion, we keep
 'matrix_rank' as the name?

 I've edited as Robert suggested, attempting to adopt a more suitable
 tone in the docstring...

 Thanks a lot,

 Matthew



What comes next when someone offers up a useful function like this?
We are using an earlier version of in statsmodels and wouldn't mind
seeing this in numpy.  Presumably the doctests should be turned into
actual tests (noting Robert's comment) to make it more likely that it
gets in and an enhancement ticket should be filed?

Skipper
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Proposal for matrix_rank function in numpy

2009-12-16 Thread Matthew Brett
Hi,

 Is it reasonable to summarize that, to avoid confusion, we keep
 'matrix_rank' as the name?

 I've edited as Robert suggested, attempting to adopt a more suitable
 tone in the docstring...

 What comes next when someone offers up a useful function like this?
 We are using an earlier version of in statsmodels and wouldn't mind
 seeing this in numpy.  Presumably the doctests should be turned into
 actual tests (noting Robert's comment) to make it more likely that it
 gets in and an enhancement ticket should be filed?

I'm happy to write the doctests as tests.   My feeling is there is no
objection to this function at the moment, so it would be reasonable,
unless I hear otherwise, to commit to SVN.

Best,

Matthew
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Proposal for matrix_rank function in numpy

2009-12-16 Thread Skipper Seabold
On Wed, Dec 16, 2009 at 2:13 PM, Matthew Brett matthew.br...@gmail.com wrote:
 Hi,

 Is it reasonable to summarize that, to avoid confusion, we keep
 'matrix_rank' as the name?

 I've edited as Robert suggested, attempting to adopt a more suitable
 tone in the docstring...

 What comes next when someone offers up a useful function like this?
 We are using an earlier version of in statsmodels and wouldn't mind
 seeing this in numpy.  Presumably the doctests should be turned into
 actual tests (noting Robert's comment) to make it more likely that it
 gets in and an enhancement ticket should be filed?

 I'm happy to write the doctests as tests.   My feeling is there is no
 objection to this function at the moment, so it would be reasonable,
 unless I hear otherwise, to commit to SVN.


Sounds good.  I didn't know you had commit privileges, and I didn't
want to see this get lost in the shuffle.

Skipper
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Proposal for matrix_rank function in numpy

2009-12-16 Thread Gael Varoquaux
On Wed, Dec 16, 2009 at 02:13:08PM -0500, Matthew Brett wrote:
 I'm happy to write the doctests as tests.   My feeling is there is no
 objection to this function at the moment, so it would be reasonable,
 unless I hear otherwise, to commit to SVN.

I have one small comment: I am really happy to see you working on this
function. It will be very useful, and its great to have it in a
generaly-available package. However, I wonder whether it belongs to
numpy.linalg, or scipy.linalg. I was under the impression that we should
direct users who have linalg problems to scipy, as it can do much more.

My 2 cents,

Gaël
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Proposal for matrix_rank function in numpy

2009-12-16 Thread Matthew Brett
Hi,

On Wed, Dec 16, 2009 at 2:16 PM, Gael Varoquaux
gael.varoqu...@normalesup.org wrote:
 On Wed, Dec 16, 2009 at 02:13:08PM -0500, Matthew Brett wrote:
 I'm happy to write the doctests as tests.   My feeling is there is no
 objection to this function at the moment, so it would be reasonable,
 unless I hear otherwise, to commit to SVN.

 I have one small comment: I am really happy to see you working on this
 function. It will be very useful, and its great to have it in a
 generaly-available package. However, I wonder whether it belongs to
 numpy.linalg, or scipy.linalg. I was under the impression that we should
 direct users who have linalg problems to scipy, as it can do much more.

It's another option, and one I thought of, but in this case, the use
is so ubiquitous in linear algebra, and the function so small, that it
would seem a pity to require installing scipy to get it.

See you,

Matthew
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] tracking additions to NumPy across versions

2009-12-16 Thread David Warde-Farley
Hi all,

Is there currently anything in the docstring standard about tracking  
when functions get added to NumPy? The recent discussion of  
matrix_rank got me thinking about this.

Regards,

David
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] tracking additions to NumPy across versions

2009-12-16 Thread David Warde-Farley

On 16-Dec-09, at 5:21 PM, David Warde-Farley wrote:

 Hi all,

 Is there currently anything in the docstring standard about tracking
 when functions get added to NumPy? The recent discussion of
 matrix_rank got me thinking about this.

Once again, Google answered for me a few minutes after I asked.  I see  
we have .. versionadded:.

http://mail.scipy.org/pipermail/numpy-discussion/2009-July/044043.html

Sorry for the noise.

David
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion