Skip to content

mp_units::utility::inner_product

Synopsis

Declared in <mp-units/utility/cartesian_tensor.h>

template<typename T, std::size_t N, typename U>
  requires requires(const T& t, const U& u, decltype(t * u) v) {
    t * u;
    v + v;
  }
[[nodiscard]] constexpr auto inner_product(cartesian_tensor<T, N> const& lhs, cartesian_vector<U, N> const& rhs);

Note

This function is a hidden friend of cartesian_tensor, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

Note

The return value should not be discarded.