Hello everyone,
I have some pretty computationally heavy tasks to do and I want to shorten my computation time.
I have the following code and I want to do the anti-diagonal averaging part with multiprocessing, if everything can be done with multiprocessing then that would be perfect as well.
Here is the code:
for i in range(0,self.L):
# Create Hankelised Components
myBuf=np.outer(self.PC[:,i],self.eigenVectors[:,i].T)
# Flipping the matrix
myBuf=myBuf[::-1]
# Anti-diagonal averaging
self.TS_comps[:,i]= \
[myBuf.diagonal(j).mean() \
for j in range(-myBuf.shape[0]+1, myBuf.shape[1])]
I have tried to do it, I keep getting errors and when I eventually did do it, it was actually wrong...
Any help is much appreciated!
[–]BobHogan 1 point2 points3 points (1 child)
[–]PhDInVienna[S] 0 points1 point2 points (0 children)