UNPKG

@thi.ng/tensors

Version:

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

12 lines 527 B
import type { Maybe } from "@thi.ng/api"; import type { MultiTensorOpImpl } from "./api.js"; /** * Specialized / optimized version of * [`thi.ng/defmulti`](https://thi.ng/defmulti) for tensor operations. Uses * simplified logic to dispatch on tensor dimension ({@link ITensor.dim}) of * `dispatch` argument. * * @param dispatch - arg index (default: 1) */ export declare const top: <T extends Function>(dispatch?: number, fallback?: T, ...optimized: Maybe<T>[]) => MultiTensorOpImpl<T>; //# sourceMappingURL=top.d.ts.map