brightyuxl

张量的两种运算

1. 张量的乘(Tensor product)




tensorproduct()




2. 张量的缩并

tensorcontraction()


The matrix trace is equivalent to the contraction of a rank-2 array


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).

分类:

技术点:

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2021-07-15
  • 2022-01-15
  • 2021-12-14
  • 2021-05-10
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-05-13
  • 2021-08-17
  • 2021-12-18
  • 2021-09-13
相关资源
相似解决方案