Hi all,<br><br>This looks like a bug to me.<br><br><span style="font-family: courier new,monospace;">>>> a = arange(6).reshape(2,3)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
>>> a.resize((3,3))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "<stdin>", line 1, in <module></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ValueError: cannot resize this array:  it does not own its data
</span><br><br>Is there any reason resize should fail in this case? Resize should be returning an new array, no? There are several other things that<br>look like bugs in this method, for instance:<br><br><span style="font-family: courier new,monospace;">
>>> a = arange(6).resize((2,3))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">>>> a</span><br><br>`a` has no value and no error is raised.<br><br>
The resize function works as expected<br><br><span style="font-family: courier new,monospace;">>>> resize(a,(3,3))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
array([[0, 1, 2],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">       [3, 4, 5],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
       [0, 1, 2]])</span><br style="font-family: courier new,monospace;"><br>Chuck<br>