Template Function t8_ax(TVec&, const double)

Function Documentation

template<T8VecType TVec>
constexpr void t8_ax(TVec &vec_x, const double alpha)

Compute X = alpha * X.

Parameters:
  • vec_x[inout] An N-dimensional vector. On output set to alpha * vec_x.

  • alpha[in] A factor.