|
Empty arrays strange behaviour: msg#00051python.numeric.general
>>> a = arange(20, shape=(4,5)) >>> a array([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19]]) >>> a[2:4,5:7] # Shouldn't it raise index error? array([]) >>> a[2:4, 5:7].iscontiguous() 0 # ???? >>> a[2:4, 5:7].copy().iscontiguous() 0 # ???? Shouldn't iscontiguous method of empty arrays and array.copy() return 1? Nadav. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Bool array missing sum function.: 00051, Nadav Horesh |
|---|---|
| Next by Date: | Re: Empty arrays strange behaviour: 00051, Todd Miller |
| Previous by Thread: | Bool array missing sum function.i: 00051, Nadav Horesh |
| Next by Thread: | Re: Empty arrays strange behaviour: 00051, Todd Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |