UNPKG

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