gemm function

Mat gemm(
  1. InputArray src1,
  2. InputArray src2,
  3. double alpha,
  4. InputArray src3,
  5. double beta, {
  6. OutputArray? dst,
  7. int flags = 0,
})

Gemm performs generalized matrix multiplication.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gacb6e64071dffe36434e1e7ee79e7cb35

Implementation

Mat gemm(
  InputArray src1,
  InputArray src2,
  double alpha,
  InputArray src3,
  double beta, {
  OutputArray? dst,
  int flags = 0,
}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Gemm(src1.ref, src2.ref, alpha, src3.ref, beta, dst!.ref, flags));
  return dst;
}