How can I take a np.einsum along a specific dimension?

前端 未结 0 1489
不思量自难忘°
不思量自难忘° 2021-02-02 17:01

I have 2 complex matricies, each of the shape (2,4,4,4,3). I would like to implement the following code without a for loop:

ce2 = np.random.rand(2,4,4,4,3)+np.ran         


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