Add#

inline Matrix22 Add(const Matrix22 &a, const Matrix22 &b)#

Adds two 2x2 matrices element-wise.

Performs element-wise addition of two matrices. Each element of the resulting matrix is the sum of the corresponding elements from the input matrices.

Parameters:
  • a[in] First matrix

  • b[in] Second matrix

Returns:

Sum matrix a + b