Warning: session_start(): open(/var/lib/php/sessions/sess_go4eqi6acdr8f95lkvevjvtskk, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static BufferedImage gridLOLToImage(L cellWidths, L cellHeights, LL lol) {
L> lom = mapWithIndex(lol,
(i, m) -> listToMatrix(cellWidths.get(i), m));
MatrixOfMatrices mom = listToMatrix_cols(l(cellWidths), lom);
L cellX1s = partialSums_firstIs0(cellWidths);
L cellY1s = partialSums_firstIs0(cellHeights);
int w = last(cellX1s), h = last(cellY1s);
BufferedImage restored = newBufferedImage(w, h);
forEachWithPosition(mom, (x, y, cell) ->
drawIntMatrix(restored, cell,
cyclicGet(cellX1s, x),
cyclicGet(cellY1s, y)));
ret restored;
}