Function dyn_matrix_access

Function Documentation

static inline void *dyn_matrix_access(const struct dyn_matrix *const matrix, size_t u, size_t v)

Access an element within a dynamic matrix.

The element must exist within the matrix (i.e. this function does not expand the matrix).

Parameters:
  • matrix – The matrix handle.

  • u – The row within the matrix.

  • v – The column within the matrix.

Returns:

Reference to element, or NULL if an error occurred.