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