Function amici::linear_sum

Function Documentation

inline void amici::linear_sum(realtype const a, AmiVector const &x, realtype const 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