What additional work is done by np.power?

后端 未结 0 1433
我在风中等你
我在风中等你 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         


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