[Numpy-discussion] commutative allclose

2008-04-10 Thread Tom Johnson
Should allclose() be commutative, so as to prevent the following: x = 1.1001 allclose(x,1), allclose(1,x) (False, True) There is some discussion here which provides two possible solutions:

Re: [Numpy-discussion] Problems with long

2008-03-12 Thread Tom Johnson
On Sat, Jan 26, 2008 at 5:49 AM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Tom Johnson wrote: Hi, I'm having some troubles with long. from numpy import log log(8463186938969424928L) 43.5822574833 log(10454852688145851272L) type 'exceptions.AttributeError

[Numpy-discussion] Problems with long

2008-01-25 Thread Tom Johnson
Hi, I'm having some troubles with long. from numpy import log log(8463186938969424928L) 43.5822574833 log(10454852688145851272L) type 'exceptions.AttributeError': 'long' object has no attribute 'log' Thoughts? ___ Numpy-discussion mailing list

[Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
What is the meaning of numpy's maximum on a complex-valued array? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
On Dec 6, 2007 3:23 PM, Robert Kern [EMAIL PROTECTED] wrote: Tom Johnson wrote: What is the meaning of numpy's maximum on a complex-valued array? We impose a lexicographical ordering on the complex space. Good to know, but is this documented somewhere. a.max? does not mention