public void setColumn (final ColumnVector cv, final int c) throws MatrixException {
    """
	Set a column of this matrix from a column vector.
	
	@param cv
	the column vector
	@param c
	the column index
	@throws MatrixException
	for an invalid index or an invalid vector size
    """
    if ((c < 0) || (c >= m_nCols))
    {
      throw new MatrixException (MatrixException.INVALID_INDEX);
    }
    if (m_nRows != cv.m_nRows)
    {
      throw new MatrixException (MatrixException.INVALID_DIMENSIONS);
    }

    for (int r = 0; r < m_nRows; ++r)
    {
      m_aValues[r][c] = cv.m_aValues[r][0];
    }
  }
public void setColumn (final ColumnVector cv, final int c) throws MatrixException
  {
    if ((c < 0) || (c >= m_nCols))
    {
      throw new MatrixException (MatrixException.INVALID_INDEX);
    }
    if (m_nRows != cv.m_nRows)
    {
      throw new MatrixException (MatrixException.INVALID_DIMENSIONS);
    }

    for (int r = 0; r < m_nRows; ++r)
    {
      m_aValues[r][c] = cv.m_aValues[r][0];
    }
  }
public void setColumn ( final ColumnVector cv , final int c ) throws MatrixException { if ( ( c < 0 ) || ( c >= m_nCols ) ) { throw new MatrixException ( MatrixException . INVALID_INDEX ) ; } if ( m_nRows != cv . m_nRows ) { throw new MatrixException ( MatrixException . INVALID_DIMENSIONS ) ; } for ( int r = 0 ; r < m_nRows ; ++ r ) { m_aValues [ r ] [ c ] = cv . m_aValues [ r ] [ 0 ] ; } }
Set a column of this matrix from a column vector.

@param cv
the column vector
@param c
the column index
@throws MatrixException
for an invalid index or an invalid vector size
Set a column of this matrix from a column vector .