Reputation: 1068
In python I have 2 three dimensional arrays:
T
with size (n,n,n)
U
with size (k,n,n)
T
and U
can be seen as many 2-D arrays one next to the other. I need to multiply all those matrices, ie I have to perform the following operation:
for i in range(n):
H[:,:,i] = U[:,:,i].dot(T[:,:,i]).dot(U[:,:,i].T)
As n
might be very big I am wondering if this operation could be in some way speed up with numpy.
Upvotes: 2
Views: 77