Hi Nadav,

On 10/8/06, Nadav Horesh <[EMAIL PROTECTED]> wrote:

There is a "tensortdot" function in numpy1.0rc1


The tensordot is not the same thing as a tensor product. What I want is the following:

def tensor(a, b) :
    """Tensor product of a and b
   
    """
    a = asarray(a)
    b = asarray(b)
    return outer(a, b).reshape(a.shape + b.shape)

Chuck 


-------------------------------------------------------------------------
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
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to