From: Sebastian H. <ha...@ms...> - 2006-07-17 16:40:49
|
Hi! This is what I got: >>> import numarray as na >>> na.__version__ '1.4.0' >>>bbb=3Dna.zeros((2,3,3), naFloat32) >>>bbb[0,:,:]=3D1 >>>bbb[1,:,:]=3D2 >>>ccc=3Dna.transpose(bbb,(1,0,2)) >>>d=3Dna.array([[1,0],[0,1]]) >>>na.dot(d,ccc) [[[ 1. =A01. =A01.] =A0 [ 1. =A01. =A01.] =A0 [ 1. =A01. =A01.]] =A0[[ 2. =A02. =A02.] =A0 [ 2. =A02. =A02.] =A0 [ 2. =A02. =A02.]]] This is on a PC (Windows or Linux): But if you do the same thing on Mac, the result will be: [[[ 1. 1. 1.] =A0 [ 2. 2. 2.] =A0 [ 1. 1. 1.]] =A0[[ 2. 2. 2.] =A0 [ 1. 1. 1.] =A0 [ 2. 2. 2.]]] Can someone confirm this ? (the new numpy on windows also gives the first result) Thanks, Sebastian Haase |