I'm trying to change the Array Prototype and access columns as if they are rows therefor doing a custom matrix transposition. I want to make sure that the access of each column doesn't require re-allocating and creating an entirely new object just to access a particular column.
For example...
var mcol = new column([[0,1,2],[3,4,5],[6,7,8]]);
alert(mcol[1]);
What I'm looking for is to read the column as if it was a row... (doing a 90 degree transform on the matrix)
mcol[1] = [1,4,7];
Any suggestions?