Sets a raster value if the raster is writable.

@param col
@param row
@param value
493007
public void setValueAt( int col, int row, double value ) {
        if (makeNew) {
            if (isInRaster(col, row)) {
                ((WritableRandomIter) iter).setSample(col, row, 0, value);
            } else {
                throw new RuntimeException("Setting value outside of raster.");
            }
        } else {
            throw new RuntimeException("Writing not allowed.");
        }
    }
395134
public void setValue(String column, String value) {
    Collection<Column> cols = source.getColumn(column);
    Column col = cols.iterator().next();
    setValue(col, value);
  }
89759
public function setCellValue(int $col, int $row, string $value, string $ajax_url = '')
    {
        if (!isset($this->structure[$row][$col])) {
            return $this;
        }

        // Show loader
        if (!$value && $ajax_url) {
            $value = '<img src="'. DIR_CMS_IMAGES_URL .'loading.gif">';
        }

        $this->structure[$row][$col]['value'] = $value;
        $this->structure[$row][$col]['ajax_url'] = $ajax_url;

        return $this;
    }
106925
function set( $row, $col, $value )
    {
        if ( $value !== 0 )
        {
            $pos = $row * $this->Cols + $col;
            $pos = base_convert( $pos, 10, 36 );
            $this->Matrix["*$pos"] = $value;
        }
    }
992743
def setRows(self, rows):
        
        self._raster[0] = rows
        if self._raster[1] == 0:
            self._raster[1] = 1
701148
private double valueToPixelValue(GriddedTile griddedTile, double value) {

		double pixelValue = value;

		if (griddedCoverage != null
				&& griddedCoverage.getDataType() == GriddedCoverageDataType.INTEGER) {

			pixelValue -= griddedCoverage.getOffset();
			pixelValue /= griddedCoverage.getScale();
			if (griddedTile != null) {
				pixelValue -= griddedTile.getOffset();
				pixelValue /= griddedTile.getScale();
			}

		}

		return pixelValue;
	}
321823
public void setValueAt( int index, double value ) {

        int row = index / data[0].length;
        int col = index % data[0].length;

        data[row][col] = value;
    }
983162
public double valueAt( int col, int row ) {
        if (isInRaster(col, row)) {
            double value = iter.getSampleDouble(col, row, 0);
            return value;
        }
        return HMConstants.doubleNovalue;
    }
933781
public static void divideRowBy(double[][] matrix, int aRow, int fromCol, double value) {
		int cols = matrix[0].length;
		double[] r = matrix[aRow];
		for (int col = fromCol; col < cols; col++) {
			r[col] /= value;
		}
	}
470080
protected Object retriveValue(Class<?> type, RowData row, Column col) {
        if (StringUtils.isNotEmpty(col.getPattern())) {
            if (ClassUtils.isAssignable(type, Map.class)) {
                return row.getCellValuesAsMap(col.getPattern(), 1, col.getReplace());
            } else {
                return row.getCellValues(col.getPattern(), col.getReplace(),
                        col.isExcludeEmptyValue());
            }
        } else {
            if (ClassUtils.isAssignable(type, Integer.class)) {
                return row.getInt(col.getName(), col.getReplace());
            } else if (ClassUtils.isAssignable(type, Boolean.class)) {
                return row.getBoolean(col.getName(), col.getTrueStr(), col.getReplace());
            } else {
                return row.getCellValue(col.getName(), col.getReplace());
            }
        }
    }
1318787
private void checkIndices(int row, int col) {
        if (row < 0 || row >= rows)
            throw new ArrayIndexOutOfBoundsException("row: " + row);
        else if (col < 0 || col >= cols)
            throw new ArrayIndexOutOfBoundsException("column: " + col);
    }
362179
public void addCell(String row, String col, String value) throws Exception {
		HeaderInfo rowIndex = rowLookup.get(row);
		HeaderInfo colIndex = columnLookup.get(col);
		if (rowIndex == null) {
			throw new Exception("Row " + row + " not found in worksheet");
		}
		if (colIndex == null) {
			throw new Exception("Column " + col + " not found in worksheet");
		}


		data[rowIndex.getIndex()][colIndex.getIndex()] = new CompactCharSequence(value);
	}
1067461
public static void setRow(final double[][] m1, final int r, final double[] row) {
    final int columndimension = getColumnDimensionality(m1);
    assert row.length == columndimension : ERR_DIMENSIONS;
    System.arraycopy(row, 0, m1[r], 0, columndimension);
  }
136430
@Override
	public final Object getValueAt(final int row, final int col) {
		TableTreeNode rowNode = getNodeAtLine(row);
		return getValueAt(rowNode, col);
	}
466155
private void updateBeanValueForColumnInRow(final WTableRowRenderer rowRenderer,
			final UIContext rowContext,
			final List<Integer> rowIndex, final int col, final TableModel model) {
		// The actual component is wrapped in a renderer wrapper, so we have to fetch it from that
		WComponent renderer = ((Container) rowRenderer.getRenderer(col)).getChildAt(0);

		UIContextHolder.pushContext(rowContext);

		try {
			// If the column is a Container then call updateBeanValue to let the column renderer and its children update
			// the "bean" returned by getValueAt(row, col)
			if (renderer instanceof Container) {
				WebUtilities.updateBeanValue(renderer);
			} else if (renderer instanceof DataBound) { // Update Databound renderer
				Object oldValue = model.getValueAt(rowIndex, col);
				Object newValue = ((DataBound) renderer).getData();
				if (!Util.equals(oldValue, newValue)) {
					model.setValueAt(newValue, rowIndex, col);
				}
			}

		} finally {
			UIContextHolder.popContext();
		}

	}
177028
public void setFloatValueInMap( WritableRandomIter map, float value ) {
        if (map == null) {
            return;
        }
        try {
            map.setSample(col, row, 0, value);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
1356815
public void setColorForTotal(int row, int column, Color color){
		int mapC = (colors.length-1) - column;
		int mapR = (colors[0].length-1) - row;
		colors[mapC][mapR]=color;		
	}