setAbsolute method
Set the Logic at absolute position (row
, col
) to val
.
Implementation
void setAbsolute(int row, int col, Logic val) {
final product = partialProducts[row];
final i = col - rowShift[row];
if (product.length > i) {
product[i] = val;
} else {
while (product.length < i) {
product.add(Const(0));
}
partialProducts[row].add(val);
}
}