Template Function Jet::Utilities::MultiplySquareMatrices

Function Documentation

template<typename scalar_type_t>
inline std::vector<std::complex<scalar_type_t>> Jet::Utilities::MultiplySquareMatrices(const std::vector<std::complex<scalar_type_t>> &m1, const std::vector<std::complex<scalar_type_t>> &m2, size_t n)

Multiplies the two given square matrices.

Template Parameters

scalar_type_t – Template parameter of std::complex.

Parameters
  • m1 – Matrix on the LHS of the multiplication.

  • m2 – Matrix on the RHS of the multiplication.

  • n – Order of the two matrices.

Returns

Matrix representing the product of m1 and m2.