code: public void set(VTensor other) {
          checkEqualSize(this, other);
          this.dims = IntArrays.copyOf(other.dims);
          for (int c = 0; c < this.size(); c++) {
              this.setValue(c, other.getValue(c));
          }
      }
docs: Sets the dimensions and values to be the same as the given tensor.
  Assumes that the size of the two vectors are equal.