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

Function Documentation

template<T8VecType TVecX, T8VecType TVecY>
constexpr void t8_axpy(const TVecX &vec_x, TVecY &vec_y, const double alpha)

Y = Y + alpha * X

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

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

  • alpha[in] A factor.