Thanks Chris and Stefan,
In the end, I'm going to take both your advice and not do this after
all. Actually I worked out another way to do the same thing.
Essentially, rather than store a pointer I store a reference to the
array, and an array of indices in that array. Much safer and the things
Dan Goodman wrote:
> (because I want to construct the 1D arrays X, Y above from values picked
> from a variety of possible data structures, including dense and sparse
> 2D arrays, but in such a way that the code that uses these values
> doesn't have to know where the values came from in these da
Hi Dan
2009/4/29 Dan Goodman :
> I have a slightly strange idea for something I would like to do with
> numpy which I guess probably doesn't exist, but I may be wrong. What I
> want to do, essentially, is to have two arrays of equal size, say X and
> Y, of pointers to doubles say. Then I want to d
Hi all,
I have a slightly strange idea for something I would like to do with
numpy which I guess probably doesn't exist, but I may be wrong. What I
want to do, essentially, is to have two arrays of equal size, say X and
Y, of pointers to doubles say. Then I want to do (in C notation) *x +=
*y