I have a piece of code of type:
nnt = np.real(np.einsum('xa,xb,yc,yd,abcde->exy',evec,evec,evec,evec,quartic))
where evec is (say) an L x L np.float32 array, and quartic is a L x L x L x L x T np.complex64 array.
I found that this routine is rather slow.
I thought that since all the evec's are identical, there might be a faster way of doing this?
Thanks in advance.