978979980981982983984
AMatrix m2=Matrixx.createRandomSquareMatrix(3); doGenericTests(m2.asVector()); doGenericTests(m2.getRow(1)); doGenericTests(m2.getColumn(1)); doGenericTests(m2.getLeadingDiagonal()); doGenericTests(new MatrixAsVector(m2)); }
987988989990991992993
AMatrix m3=Matrixx.createRandomMatrix(4,5); doGenericTests(m3.asVector()); doGenericTests(m3.getRow(2)); doGenericTests(m3.getColumn(2)); doGenericTests(m3.subMatrix(1, 1, 2, 3).asVector()); doGenericTests(new MatrixAsVector(m3)); }
1249125012511252125312541255
if (rc == 1) return getRowView(0); int cc= columnCount(); if (cc==1) return getColumnView(0); return new MatrixAsVector(this); }