UNPKG

@thi.ng/tensors

Version:

0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage

20 lines 683 B
import type { ITensor } from "./api.js"; /** * Tensor convolution (without broadcasting support). * * @remarks * The output tensor has the same shape as domain `a`. Edge values in `a` will * be repeated. If `out` is null, a new tensor will be created using `a`'s * storage backend. * * References: * * - https://en.wikipedia.org/wiki/Convolution * - https://en.wikipedia.org/wiki/Kernel_(image_processing)#Convolution * * @param out - output tensor * @param a - input tensor * @param k - kernel tensor */ export declare const convolve: import("./api.js").MultiTensorOpImpl<(<T extends ITensor>(out: T | null, a: T, k: T) => T)>; //# sourceMappingURL=convolve.d.ts.map