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
array([[1],
       [2],
       [3]])
>>> b
array([[7, 6, 5, 4]])
>>> N.__version__
'1.0.dev3379'

Is this intended behaviour?

Thanks,

Scott

-- 
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
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list