[Cython] Cython array type: Summary, introducing CEP 518

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jun 19 02:43:09 CEST 2009


Dag Sverre Seljebotn wrote:

> One can always write
> 
> x[...] *= 2
> 
> if one wishes to modify original memory.

Although unless some optimisation is done on this, it
won't be quite as efficient, since it will take a slice,
in-place modify the slice and then assign the slice
back to itself.

-- 
Greg



More information about the Cython-dev mailing list