get method

double get(
  1. int row,
  2. int col
)

Gets the value at the specified row and column.

  • row: The row index.
  • col: The column index. Returns the value at the specified row and column.

Implementation

double get(int row, int col) {
  return values[row * 3 + col];
}