public static void addToSpecificCol(DenseMatrix64F matrix, DenseMatrix64F vector, int col, double alpha) {

        // In-place modification
        double[] matrixData = matrix.getData();
        double[] vectorData = vector.getData();
        int rowCount = matrix.numRows;
        int colCount = matrix.numCols;

        for (int row = 0; row < rowCount; ++row) {
            matrixData[col + row * colCount] = alpha * vectorData[row];
        }
    }