Function amici::linearSum

Function Documentation

inline void amici::linearSum(realtype a, AmiVector const &x, realtype b, AmiVector const &y, AmiVector &z)

Computes z = a*x + b*y.

Parameters
  • a – coefficient for x

  • x – a vector

  • b – coefficient for y

  • y – another vector with same size as x

  • z – result vector of same size as x and y