Re: [Numpy-discussion] I think something broke badly today in numpy/scipy...

2006-07-08 Thread Travis Oliphant
Fernando Perez wrote:
 Hi all,

 I updated earlier today (about 4 hours ago) numpy/scipy SVN, and all
 of a sudden my codes broke left and right.  Backing off to

   
Hey Fernando.   I think I found the problem.   It was the same problem 
causing the BFGS test to fail in SciPy.

It can be shown by looking at

sk = [0,-1.0,1.0]
print 250.0*sk[:,newaxis]

This should give something useful (not zeros). 

The problem was a seemingly harmless change in _IsContiguous that 
allowed for 0-strided arrays to be called contiguous.  This caused havoc 
with the multiplication function later which relied on an accurate 
_IsContiguous function. 

This change was in r2765 (I suspect you checked out a change with that 
in it).  The change could cause problems where-ever you use newaxis with 
scalar multiplication.

The problem should be fixed in SVN.

Very sorry...

-Travis


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


Re: [Numpy-discussion] I think something broke badly today in numpy/scipy...

2006-07-08 Thread Fernando Perez
On 7/8/06, Travis Oliphant [EMAIL PROTECTED] wrote:

 Hey Fernando.   I think I found the problem.   It was the same problem
 causing the BFGS test to fail in SciPy.

[...]

 The problem should be fixed in SVN.

Confirmed.  With:

numpy version: 0.9.9.2788
scipy version: 0.5.0.2057

I checked on two machines (home/office) and all is good now.  I only
had to make a tiny change to my hand-written extensions for the new C
API names, and all checks OK now.

 Very sorry...

Considering how much you've given us, I don't really think you even
have the /right/ to apologize to anyone ;)

Many thanks for such a remarkable fix, given my impossibly vague bug
report.  You rock.

f

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion