public double [ ] getColumn ( int col ) { double [ ] column = new double [ numRows ] ; int offset = translate ( 0 , col , numRows ) ; for ( int i = 0 ; i < column . length ; i ++ ) { column [ i ] = matrix [ offset + i ] ; } return column ; }
Gets a whole column of the matrix as a double array .