[Numpy-discussion] tensor dot ?

Nadav Horesh nadavh at visionsense.com
Sat Aug 26 08:45:39 CDT 2006

I once wrote a function "tensormultiply" which is a part of numarray (undocumented). You can borrow it from there.


-----Original Message-----
From:	numpy-discussion-bounces at lists.sourceforge.net on behalf of Simon Burton
Sent:	Fri 25-Aug-06 14:42
To:	numpy-discussion at lists.sourceforge.net
Subject:	[Numpy-discussion] tensor dot ?

>>> numpy.dot.__doc__
Returns the dot product of a and b for arrays of floating point types.
Like the generic numpy equivalent the product sum is over
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 Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Ph. 61 02 6249 6940

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
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net

More information about the Numpy-discussion mailing list