List<double> fetchRow(int row) { final cols = shape[1]; final allData = fetchData(); return allData.sublist(row * cols, (row + 1) * cols); }