I have two nested loops which I try to parallelize to save time however I do not know how I will be able to proceed.
here is my function:
def delta(A,B,U):
for i in range(len(U)):
x = 0
for j in range(len(U)):
x = x + (1-A[i][j])*V[j]
U[i] = U[i] + (-x + B * h(i,A))
U is an array, A a matrix and B is an integer and h() returns 0 or 1.
Does somebody have an idea? I'll take it.
Thank you in advance for your comments ;).