What additional work is done by np.power?

后端 未结 0 1633
半阙折子戏
半阙折子戏 2021-02-12 08:38

I realised that np.power(a, b) is slower than np.exp(b * np.log(a)):

import numpy as np
a, b = np.random.random((2, 100000))
%timeit np         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题