setValue method

void setValue(
  1. Tuple2<int, int> ij,
  2. double value
)

Implementation

void setValue(Tuple2<int, int> ij, double value) {
  var i = ij.item1 % shape.item1;
  var j = ij.item2 % shape.item2;

  values[i][j] = value;
}