Function dyn_matrix_set

Function Documentation

status_t dyn_matrix_set(struct dyn_matrix *matrix, size_t u, size_t v, const void *w)

Set an element in the dynamic matrix to a specific value.

If the row/column is outside the current bounds of the matrix, the matrix will be resized to accommodate.

Parameters:
  • matrix – The matrix handle.

  • u – Element row index.

  • v – Element column index.

  • w – New element value.

Returns:

status_t