Template Function t8_diff(const TVecX&, const TVecY&, TVecDiff&)

Function Documentation

template<T8InputRange TVecX, T8InputRange TVecY, T8InputRange TVecDiff>
constexpr void t8_diff(const TVecX &vec_x, const TVecY &vec_y, TVecDiff &diff)

Compute the difference of two vectors.

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

  • vec_y[in] An N-dimensional vector.

  • diff[out] On output, the difference of vec_x and vec_y.