setAbsolute method

void setAbsolute(
  1. int row,
  2. int col,
  3. Logic val
)

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);
  }
}