Template Function amici::checkBufferSize

Function Documentation

template<class T>
void amici::checkBufferSize(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