Warning: session_start(): open(/var/lib/php/sessions/sess_arp2825n79p4kponhsivf260cp, 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
persistable sclass SubMatrix extends AbstractMatrix {
Matrix matrix;
int x1, y1;
*(Matrix *matrix, Rect r) {
super(r.w, r.h);
x1 = r.x; y1 = r.y;
}
// currently no range checks
public A get(int x, int y) {
try {
ret matrix.get(x+x1, y+y1);
} catch e {
throw augmentException(e, this);
}
}
public void set(int x, int y, A a) { matrix.set(x+x1, y+y1, a); }
toString { ret renderFunctionCall("SubMatrix", x1, y1, w, h); }
}