[Numpy-discussion] array copy-to-self and views

Christopher Barker Chris.Barker@noaa....
Thu Feb 1 14:39:09 CST 2007


Zachary Pincus wrote:
> Say a function that (despite Tim's pretty  
> reasonable 'don't do that' warning) will return true when two arrays  
> have overlapping memory?

I think it would be useful, even if it's not robust. I'd still like to 
know if a given two arrays COULD share data.

I suppose to really be robust, what I'd really want to know is if a 
given array shares data with ANY other array, i.e. could changing this 
mess something up? -- but I'm pretty sure that is next to impossible

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list