[Numpy-discussion] Memory efficient equality test for arrays

2007-08-01 Thread Tom Goddard
Is there a numpy call to test if two large arrays (say 1 Gbyte each) are equal (same shape and elements) without creating another large array of booleans as happens with "a == b", numpy.equal(a,b), or numpy.array_equal(a,b)? I want a memory efficient and fast comparison. Tom _

[Numpy-discussion] a.flat[3:7] is a copy?

2007-07-28 Thread Tom Goddard
for the new array, and this array will have its WRITEABLE flag set FALSE until the the last reference to the new array disappears. When the last reference to the new 1-d array disappears, the data will be copied over to this non-contiguous array. This is done so that a.flat effectivel