And on my Mac:
OS-X 10.4.*, PPC, universal python 2.4.3:
>>> import numarray as na
>>> na.__version__
'1.5.1'
>>> bbb=na.zeros((2,3,3), na.Float32)
>>> bbb[0,:,:]=1
>>> bbb[1,:,:]=2
>>> ccc=na.transpose(bbb,(1,0,2))
>>> d=na.array([[1,0],[0,1]])
>>> na.dot(d,ccc)
array([[[ 1., 1., 1.],
[ 2., 2., 2.],
[ 1., 1., 1.]],
[[ 2., 2., 2.],
[ 1., 1., 1.],
[ 2., 2., 2.]]], type=Float32)
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion