Double every value of a copy of v in place, using np.multiply with out=, and re…

NumPy · from Making it fast

out=in-place opsnp.vectorizetemporarieswhere=contiguityfloat32

Putting the kettle on…

Starting up…

Exercise 3

Double every value of a copy of v in place, using np.multiply with out=, and return it.

your answer
stuck? the lesson behind it
Making it fast
Kill the loops, stop copying, reuse buffers — in that order.