Get the “diagonal” entry of a fourth order tensor in python

前端 未结 0 1948
孤城傲影
孤城傲影 2021-02-07 05:36

I have a fourth-order tensor A of shape a * a * a * a. Given a index (i,j,k,l), I want to get all the entry in A with index (i+c, j+d, k+c, l+d), where c and d can be both posit

相关标签:
回答
  • 消灭零回复
提交回复
热议问题