code: private void internalSet(VarTensor newFactor) {
          this.vars = newFactor.vars;
          this.dims = newFactor.dims;
          this.strides = newFactor.strides;
          this.values = newFactor.values;
      }
docs: This set method is used to internally update ALL the fields.