Vector Manipulation Layer (VectorLib)


getRowCol
to get specified rows and cols of array



FUNCTIONS

int[][] - getRowCol(int[][] data, int startrow, int endrow, int startcol, int endcol)
double[][] - getRowCol(double[][] data, int startrow, int endrow, int startcol, int endcol)




EXAMPLES

Example VectorLib vlib=new VectorLib();
int[][] a={{4, 8, 6}, {7, 2, 5}, {1, 3, 9}};
int[] b=vlib.getRowCol(a, 0, 1, 1, 2);
vlib.view("Data", b);
Output Data =
8      6
2      5


Example VectorLib vlib=new VectorLib();
double[][] a={{4.4, 8.2, 6.5}, {7.1, 2.4, 5.3}, {1.8, 3.6, 9.2}};
double[] b=vlib.getRowCol(a, 1, 2, 0, 1);
vlib.view("Data", b);
Output Data =
7.1      2.4
1.8      3.6