Template Function amici::check_buffer_size

Function Documentation

template<class T>
void amici::check_buffer_size(gsl::span<T> buffer, typename gsl::span<T>::index_type expected_size)

local helper to check whether the provided buffer has the expected size

Parameters:
  • buffer – buffer to which values are to be written

  • expected_size – expected size of the buffer