code: public void setRow(RowVector rv, int r) throws MatrixException
      {
          if ((r < 0) || (r >= nRows)) {
              throw new MatrixException(MatrixException.INVALID_INDEX);
          }
          if (nCols != rv.nCols) {
              throw new MatrixException(
                                  MatrixException.INVALID_DIMENSIONS);
          }
  
          for (int c = 0; c < nCols; ++c) {
              this.values[r][c] = rv.values[0][c];
          }
      }
docs: Set a row of this matrix from a row vector.
  @param rv the row vector
  @param r the row index
  @throws numbercruncher.MatrixException for an invalid index or
  an invalid vector size