Example:
this = 2 x 3 matrix: 1, 2, 3 4, 5, 6 rowIndexes = (0,1) columnIndexes = (1,0,1,0) --> view = 2 x 4 matrix: 2, 1, 2, 1 5, 4, 5, 4Note that modifying the index arguments after this call has returned has no effect on the view. The returned view is backed by this matrix, so changes in the returned view are reflected in this matrix, and vice-versa.
To indicate "all" rows or "all columns", simply set the respective parameter @param rowIndexes The rows of the cells that shall be visible in the new view. To indicate that all rows shall be visible, simply set this parameter to null. @param columnIndexes The columns of the cells that shall be visible in the new view. To indicate that all columns shall be visible, simply set this parameter to null. @return the new view. @throws IndexOutOfBoundsException if !(0 <= rowIndexes[i] < rows()) for any i=0..rowIndexes.length()-1. @throws IndexOutOfBoundsException if !(0 <= columnIndexes[i] < columns()) for any i=0..columnIndexes.length()-1.
|
|
|
|