code: public void elemAdd(Tensor other) {
          checkEqualSize(this, other);
          for (int c = 0; c < this.values.length; c++) {
              addValue(c, other.values[c]);
          }
      }
docs: Adds a factor elementwise to this one.
  @param other The addend.
  @throws IllegalArgumentException If the two tensors have different sizes.