張量系列(tensor02)


張量的兩種運算

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM