张量的两种运算

1. 张量的乘(Tensor product)

张量系列(tensor02) Python 第1张
张量系列(tensor02) Python 第2张
张量系列(tensor02) Python 第3张
张量系列(tensor02) Python 第4张

tensorproduct()

张量系列(tensor02) Python 第5张
张量系列(tensor02) Python 第6张
张量系列(tensor02) Python 第7张
张量系列(tensor02) Python 第8张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2. 张量的缩并

tensorcontraction()

张量系列(tensor02) Python 第9张
张量系列(tensor02) Python 第10张

The matrix trace is equivalent to the contraction of a rank-2 array
张量系列(tensor02) Python 第11张
张量系列(tensor02) Python 第12张
张量系列(tensor02) Python 第13张

Matrix product is equivalent to a tensor product of two rank-2 arrays, followed by a contraction of the 2nd and 3rd axes (in Python indexing axes number 1, 2).
张量系列(tensor02) Python 第14张

 
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄