set method

void set(
  1. int row,
  2. int col,
  3. double value
)

Sets the value at the specified row and column.

  • row: The row index.
  • col: The column index.
  • value: The value to set.

Implementation

void set(int row, int col, double value) {
  values[row * 3 + col] = value;
}