code: public void setRow(int row, DoubleVector values) {
          if (values.length() != cols) {
              throw new IllegalArgumentException(
                  "invalid number of columns: " + values.length());
          }
          Vectors.copy(sparseMatrix[row], values);
      }
docs: {@inheritDoc}