numPartitions = int(2**(np.ceil(np.log(n / nmax)/np.log(2.0))))
在python中 log(2.0) 意思就是 ln(2.0)
ceil的意思是向上取整
**的意思是平方
python 数学公式
最新推荐文章于 2024-04-15 12:30:00 发布
numPartitions = int(2**(np.ceil(np.log(n / nmax)/np.log(2.0))))
在python中 log(2.0) 意思就是 ln(2.0)
ceil的意思是向上取整
**的意思是平方