numpy.dot.__doc__ matrixproduct(a,b) Returns the dot product of a and b for arrays of floating point types. Like the generic numpy equivalent the product sum is over
I once wrote a function "tensormultiply" which is a part of numarray (undocumented). You can borrow it from there. Nadav -----Original Message----- From: numpy-discussion-bounces@lists.sourceforge.net on behalf of Simon Burton Sent: Fri 25-Aug-06 14:42 To: numpy-discussion@lists.sourceforge.net Cc: Subject: [Numpy-discussion] tensor dot ? the last dimension of a and the second-to-last dimension of b. NB: The first argument is not conjugated. Does numpy support summing over arbitrary dimensions, as in tensor calculus ? I could cook up something that uses transpose and dot, but it's reasonably tricky i think :) Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com ------------------------------------------------------------------------- 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
participants (1)
-
Nadav Horesh