Template Function t8_axb(const TVecX&, TVecY&, const double, const double)

Function Documentation

template<T8InputRange TVecX, T8InputRange TVecY>
constexpr void t8_axb(const TVecX &vec_x, TVecY &vec_y, const double alpha, const double b)

Y = alpha * X + b.

Parameters:
  • vec_x[in] An N-dimensional vector.

  • vec_y[out] On input, An N-dimensional vector. On output set to alpha * vec_x + b.

  • alpha[in] A factor.

  • b[in] An offset.