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

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

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

@param rv
the row vector
@param r
the row index
@throws MatrixException
for an invalid index or an invalid vector size
Set a row of this matrix from a row vector .