import threading class ThreadClient(threading.Thread): def __init__(self,f,x): threading.Thread.__init__(self) self.f = f self.x = x def run(self): l=len(self.x) for i in range(l) jacob[i,i]=diff(self.f,self.x[i],2) for j in range(i):
th = ThreadClient(f,x)#et on initialie le Thread th.start()