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

Function Documentation

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

Compute Y = alpha * X.

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

  • vec_y[out] On output set to alpha * vec_x.

  • alpha[in] A factor.