Warning: session_start(): open(/var/lib/php/sessions/sess_8g16ncmtc8ce9ho9ljo56ggpmc, 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 Matrix rgbaWithSizeToIntMatrix(L data) {
if (l(data) < 2) null;
int _w = data.get(0);
int _h = data.get(1);
if (l(data)-2 < _w*_h) null;
class RGAWithSizeMatrix extends AbstractMatrix {
*() { super(_w, _h); }
int xyToIndex(int x, int y) {
ret 2+y*w+x;
}
public Int get(int x, int y) { ret data.get(xyToIndex(x, y)); }
public void set(int x, int y, Int a) { data.set(xyToIndex(x, y), a); }
};
ret new RGAWithSizeMatrix;
}