numPartitions = int(2**(np.ceil(np.log(n / nmax)/np.log(2.0))))
在python中 log(2.0) 意思就是 ln(2.0)
ceil的意思是向上取整
**的意思是平方
numPartitions = int(2**(np.ceil(np.log(n / nmax)/np.log(2.0))))
在python中 log(2.0) 意思就是 ln(2.0)
ceil的意思是向上取整
**的意思是平方