Template Function TRAP::Math::OuterProduct#

Function Documentation#

template<u32 L, typename T>
constexpr Mat<L, L, T> TRAP::Math::OuterProduct(const Vec<L, T> &c, const Vec<L, T> &r)#

Calculate the outer product of a pair of vectors.

Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r.

Parameters:
  • c – Specifies the parameter to be treated as a column matrix.

  • r – Specifies the parameter to be treated as a row matrix.

Returns:

Multiplied matrix.