Albert Strasheim wrote: > I think we might be talking about two related but different concepts. One is > sharing of data between arrays, the other is whether the data overlaps.
When is it useful to know whether data buffers overlap? As long as they are disjoint, it should be irrelevant at the higher level of the program. > Let's assume we can get at the starting address of the array in memory via > the array interface or whatever, and the length of the array in bytes. > > To determine whether two arrays overlap, find the smallest data address of > the two arrays. If the data address of the other array is smaller than the > sum of the smallest data address and its corresponding length, you have > overlap. Don't forget the strides. Rob -- Rob W.W. Hooft || [EMAIL PROTECTED] || http://www.hooft.net/people/rob/ Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion