From bug-octave-request at bevo dot che dot wisc dot edu Tue Apr 21 22:11:43 1998 Subject: permuting the interior columns of a matrix doesn't work From: "John W. Eaton" To: Neil DeBoni Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 21 Apr 1998 22:09:58 -0500 (CDT) On 21-Apr-1998, Neil DeBoni wrote: | Bug report for Octave 2.0.5 configured for i586-pc-linux-gnu | | Description: | ----------- | | Permuting the interior (i.e., non-border) columns of a matrix doesn't work; | it makes no change at all to the matrix. I first found this on a 4x4 identity | matrix, then a 5x5 identity matrix, a 5x4 matrix, and a 4x4 Hilbert matrix. | | Repeat-By: | --------- | | Below is a diary from a test using a 5x5 identity matrix. Command line 7 | defines the matrix, lines 8 and 9 attempt (and fail) to permute "interior" | columns, and line 10 shows a successful permutation involving at least one | "border" column. | | octave:7> foo = eye(5) | foo = | | 1 0 0 0 0 | 0 1 0 0 0 | 0 0 1 0 0 | 0 0 0 1 0 | 0 0 0 0 1 | | octave:8> foo(:,[1 3 2 4 5]) | ans = | | 1 0 0 0 0 | 0 1 0 0 0 | 0 0 1 0 0 | 0 0 0 1 0 | 0 0 0 0 1 This bug has been fixed for a long time. 2.0.5 was released more than a year ago. You should definitely be using a newer version. 2.0.11 is the most recent release (and 2.0.12 will probably be out within a few weeks). Thanks, jwe