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