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: sr...@nr... Charlottesville, VA 22903 USA
GPG Fingerprint: 06A9 9553 78BE 16DB 407B FFCA 9BFA B6FF FFD3 2989
|