[Numpy-discussion] performing operations in-place in numpy
Thu Jul 9 03:00:25 CDT 2009
2009/7/9 Citi, Luca <email@example.com>:
> The problem is not PyArray_Conjugate itself.
> The problem is that whenever you call a function from the C side
> and one of the inputs has ref_count 1, it can be overwritten.
> This is not a problem from the python side because if the
> ufunc sees a ref_count=1 it means that no python object is referencing to it.
Does this also hold if you are using the Numpy API directly? Say I've
decided to write some operation with the Numpy API, I will never have
one of my arrays with ref_count == 1?
Information System Engineer, Ph.D.
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
More information about the NumPy-Discussion