Creating a numpy array from a n times function with a random behavior.without for loops

前端 未结 0 714
野的像风
野的像风 2020-12-09 03:00

I am doing optimizations in my code and would like to remove this for loop if possible. I have the following code:

    def f(x):
        return np.pi * x * np         


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