DataVector v(2);
DataMatrix m(2,2);
m(0,0) = 1;
m(0,1) = 2;
m(1,0) = 3;
m(1,1) = 4;
m.getColumn(0, v); // v= (1,3)
m.resizeRowsCols(2,1);
m.getColumn(0, v); // v=(1,2) but should still be (1,3)
the code returns the wrong result, as the comments indicate.