Erik Tollerud erik.tollerud at gmail.com writes:
Is there any straightforward way of notifying on change of a numpy
array that leaves the numpy arrays still efficient?
You can instantiate the following ndarray derived class with a callable
argument. Any change to the data will call the
On Oct 27 16:43 -0400, Pierre GM wrote:
Erik, may be you could try the trick presented here :
http://www.scipy.org/Subclasses
in the __array_wrap__ section.
Stupid question: How do I find pages like
http://www.scipy.org/Subclasses on scipy.org?
I can find them with the search function,
Steve,
Right, there's not a lot of visibility for this one. You could try
google 'numpy subclass'. there's also an entry on subclassing in the numpy
user guide (through docs.scipy.org).
Cheers
P.
On Thursday 30 October 2008 09:57:03 Steve Schmerler wrote:
On Oct 27 16:43 -0400, Pierre GM
On Oct 30 10:06 -0400, Pierre GM wrote:
Steve,
Right, there's not a lot of visibility for this one.
Yes, wouldn't it be better placed in the Cookbook section (or any other
suitable place that's visible to anyone entering scipy.org)? Other
pages are unfortunately also not visible, like
On Monday 27 October 2008 16:54:09 Erik Tollerud wrote:
Is there any straightforward way of notifying on change of a numpy
array that leaves the numpy arrays still efficient?
Erik, may be you could try the trick presented here :
http://www.scipy.org/Subclasses
in the __array_wrap__ section.
On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern [EMAIL PROTECTED] wrote:
On Mon, Oct 27, 2008 at 15:54, Erik Tollerud [EMAIL PROTECTED] wrote:
Is there any straightforward way of notifying on change of a numpy
array that leaves the numpy arrays still efficient?
Not currently, no.
--
Robert
Brent Pedersen wrote:
On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern [EMAIL PROTECTED] wrote:
On Mon, Oct 27, 2008 at 15:54, Erik Tollerud [EMAIL PROTECTED] wrote:
Is there any straightforward way of notifying on change of a numpy
array that leaves the numpy arrays still efficient?
Not