[Numpy-discussion] New may_share_memory function

2007-02-01 Thread Travis Oliphant
In SVN there is a new function may_share_memory(a,b) which will return True if the memory foot-print of the two arrays over-lap. may_share_memory(a, flipud(a)) True This is based on another utility function byte_bounds that returns the byte-boundaries of any object exporting the Python

Re: [Numpy-discussion] New may_share_memory function

2007-02-01 Thread Christopher Barker
thanks Travis, Now I just need to remember it's there when I need it! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main