// now we can set an upper bound on how large our result will be
nrows = m.get().rowSize() * files.size();
ncols = m.get().columnSize();
r = new DenseMatrix(nrows, ncols);
}
r.viewPart(row, m.get().rowSize(), 0, r.columnSize()).assign(m.get());
row += m.get().rowSize();
}
// at the end, row will have the true size of the result
if (row != nrows && r != null) {
// and if that isn't the size of the buffer, we need to crop the result a bit