code: public void setRow(int i, SparseVector x) {
          if (x.size() != numColumns)
              throw new IllegalArgumentException(
                      "New row must be of the same size as existing row");
          rowD[i] = x;
      }
docs: Sets the given row equal the passed vector