Function matrix_element_space

Function Documentation

static inline size_t matrix_element_space(size_t n_rows, size_t n_cols, size_t elt_size)

Calculate the # of bytes required for the static matrix.

Parameters:
  • n_rows – Initial # rows.

  • n_cols – Initial # columns.

  • elt_size – Size of the elements in bytes.

Returns:

The # of bytes required.