code: public void set(Tensor other) {
          checkEqualSize(this, other);
          this.dims = IntArrays.copyOf(other.dims);
          DoubleArrays.copy(other.values, this.values);
      }
docs: Sets the dimensions and values to be the same as the given tensor.
  Assumes that the size of the two vectors are equal.