Template Function amici::slice(std::vector<T>&, int, unsigned)

Function Documentation

template<class T>
gsl::span<T> amici::slice(std::vector<T> &data, int index, unsigned size)

creates a slice from existing data

Parameters:
  • data – to be sliced

  • index – slice index

  • size – slice size

Returns:

span of the slice