UNPKG

817 BTypeScriptView Raw
1import { Tensor } from '../tensor';
2import { TensorLike } from '../types';
3/**
4 * Computes the dot product of two matrices, A * B. These must be matrices.
5 *
6 * ```js
7 * const a = tf.tensor2d([1, 2], [1, 2]);
8 * const b = tf.tensor2d([1, 2, 3, 4], [2, 2]);
9 *
10 * a.matMul(b).print(); // or tf.matMul(a, b)
11 * ```
12 * @param a First matrix in dot product operation.
13 * @param b Second matrix in dot product operation.
14 * @param transposeA If true, `a` is transposed before multiplication.
15 * @param transposeB If true, `b` is transposed before multiplication.
16 *
17 * @doc {heading: 'Operations', subheading: 'Matrices'}
18 */
19declare function matMul_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike, transposeA?: boolean, transposeB?: boolean): T;
20export declare const matMul: typeof matMul_;
21export {};