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 ] ; } }
Set a row of this matrix from a row vector .