Function csmatrix_inner_index_get

Function Documentation

int csmatrix_inner_index_get(const struct csmatrix *matrix, size_t row, size_t col)

Get the index of a specific (row, col) within the inner index array.

Parameters:
  • matrix – The matrix handle.

  • row – The row for the entry

  • col – The column for the entry.

Returns:

The index, or -1 if an ERROR occurred or the (row, col) wasn’t found.