getAbsoluteAll method

List<Logic> getAbsoluteAll(
  1. int row,
  2. List<int> columns
)

Return the List at the absolute position (row, List columns.

Implementation

List<Logic> getAbsoluteAll(int row, List<int> columns) {
  final product = partialProducts[row];
  final relMax = columns.reduce(max);
  final absMax = relMax - rowShift[row];
  while (product.length <= absMax) {
    product.add(Const(0));
  }
  return [for (final c in columns) partialProducts[row][c - rowShift[row]]];
}