@makediagonal bug
Posted: Fri Nov 15, 2013 3:04 pm
The "improvements" made recently to the @makediagonal function have caused it to produce the wrong result when trying to place elements on diagonals other than the main diagonal. A specific example:
vector(10) v1 = 3
matrix m2 = @makediagonal(v1,1)
The result for m2 is a 10x10 matrix with the value 3 in the bottom row and last column, not the 11x11 matrix with the value 3 in the first super diagonal that it should and used to create. This caused a problem with some of our operations today.
vector(10) v1 = 3
matrix m2 = @makediagonal(v1,1)
The result for m2 is a 10x10 matrix with the value 3 in the bottom row and last column, not the 11x11 matrix with the value 3 in the first super diagonal that it should and used to create. This caused a problem with some of our operations today.