ix_ problem changing input arrays?

Scott Ransom sransom at nrao.edu
Mon Oct 23 10:57:57 CDT 2006

I believe that ix_() has recently begun modifying the shapes of its 
input arrays.  For instance:

Python 2.4.4c0 (#2, Jul 30 2006, 18:20:12)
[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as N
>>> a = N.array([1,2,3])
>>> b = N.array([7,6,5,4])
>>> ax, bx = N.ix_(a, b)
>>> a
>>> b
array([[7, 6, 5, 4]])
>>> N.__version__

Is this intended behaviour?



Scott M. Ransom            Address:  NRAO
Phone:  (434) 296-0320               520 Edgemont Rd.
email:  sransom at nrao.edu             Charlottesville, VA 22903 USA
GPG Fingerprint: 06A9 9553 78BE 16DB 407B  FFCA 9BFA B6FF FFD3 2989

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

More information about the Numpy-discussion mailing list