How to copy data from a numpy array to another

前端 未结 7 1690
逝去的感伤
逝去的感伤 2020-11-28 03:07

What is the fastest way to copy data from array b to array a, without modifying the address of array a. I need this because an external library (PyFFTW) uses a pointer to my

7条回答
  •  萌比男神i
    2020-11-28 03:41

    Why not to use

    a = 0 + b
    

    I think it is similar to previous multiplication but might be simpler.

提交回复
热议问题