[Numpy-discussion] performing operations in-place in numpy

Citi, Luca lciti@essex.ac...
Thu Jul 9 12:30:33 CDT 2009


Let me see if I understand correctly...
what you suggest is something like:
1) adding an argument flag to construct_arrays
  that enables/disables the feature
2) adding the same argument flag to construct_loop which
  is passed untouched to construct_arrays
3) set the flag to "disable" in the construct_loop call inside
  PyUFunc_GenericFunction
4) write an exact copy of PyUFunc_GenericFunction with the flag
  "enabled"
5) in ufunc_generic_call, call the latter instead of
  PyUFunc_GenericFunction
Am I correct?

Sounds doable to me as long as ufunc.__call__ is not
directly or indirectly in the numpy C API.


More information about the NumPy-Discussion mailing list