/** Constructs and returns a new <i>slice view</i> representing the rows of the given column. The returned view is backed by this matrix, so changes in the returned view are reflected in this matrix, and vice-versa. To obtain a slice view on subranges, construct a sub-ranging view (<tt>viewPart(...)</tt>), then apply this method to the sub-range view. <p> <b>Example:</b> <table border="0"> <tr nowrap> <td valign="top">2 x 3 matrix: <br> 1, 2, 3<br> 4, 5, 6 </td> <td>viewColumn(0) ==></td> <td valign="top">Matrix1D of size 2:<br> 1, 4</td> </tr> </table> @param column the column to fix. @return a new slice view. @throws IndexOutOfBoundsException if <tt>column < 0 || column >= columns()</tt>. @see #viewRow(int) */ public ObjectMatrix1D viewColumn(int column) { checkColumn(column); int viewSize = this.rows; int viewZero = index(0,column); int viewStride = this.rowStride; return like1D(viewSize,viewZero,viewStride); } /**
/** Constructs and returns a new <i>slice view</i> representing the rows of the given column. The returned view is backed by this matrix, so changes in the returned view are reflected in this matrix, and vice-versa. To obtain a slice view on subranges, construct a sub-ranging view (<tt>viewPart(...)</tt>), then apply this method to the sub-range view. <p> <b>Example:</b> <table border="0"> <tr nowrap> <td valign="top">2 x 3 matrix: <br> 1, 2, 3<br> 4, 5, 6 </td> <td>viewColumn(0) ==></td> <td valign="top">Matrix1D of size 2:<br> 1, 4</td> </tr> </table> @param column the column to fix. @return a new slice view. @throws IndexOutOfBoundsException if <tt>column < 0 || column >= columns()</tt>. @see #viewRow(int) */ public ObjectMatrix1D viewColumn(int column) { checkColumn(column); int viewSize = this.rows; int viewZero = index(0,column); int viewStride = this.rowStride; return like1D(viewSize,viewZero,viewStride); } /**