function matMul_(a, b, transposeA = false, transposeB = false) {
    let $a = (0, _tensorUtilEnv.convertToTensor)(a, "a", "matMul");
    let $b = (0, _tensorUtilEnv.convertToTensor)(b, "b", "matMul");
    [$a, $b] = (0, _tensorUtil.makeTypesMatch)($a, $b);
    const inputs = {
        a: $a,
        b: $b
    };
    const attrs = {
        transposeA,
        transposeB
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.BatchMatMul), inputs, attrs);
}
Computes the dot product of two matrices, A * B. These must be matrices.

```js
const a = tf.tensor2d([1, 2], [1, 2]);
const b = tf.tensor2d([1, 2, 3, 4], [2, 2]);

a.matMul(b).print();  // or tf.matMul(a, b)
```
@param a First matrix in dot product operation.
@param b Second matrix in dot product operation.
@param transposeA If true, `a` is transposed before multiplication.
@param transposeB If true, `b` is transposed before multiplication.

@doc {heading: 'Operations', subheading: 'Matrices'}