Template Function amici::heaviside_differs

Function Documentation

template<typename T>
bool amici::heaviside_differs(T a, T b)

Check whether the value of a Heaviside function differs for the two arguments.

Assumes H(x) = (x >= 1 ? 1 : 0).

Parameters:
  • a – First value

  • b – Second value

Returns:

H(a) != H(b).