Template Function TRAP::Math::MatrixCompMult#

Function Documentation#

template<u32 L, typename T>
constexpr Mat<L, L, T> TRAP::Math::MatrixCompMult(Mat<L, L, T> x, const Mat<L, L, T> &y)#

Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j].

Parameters:
  • x – Specifies the first matrix multiplicand.

  • y – Specifies the second matrix multiplicand.

Returns:

Multiplied matrix.