UNPKG

@thi.ng/tensors

Version:

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

14 lines 483 B
import type { ITensor } from "./api.js"; export declare const format: (x: any) => string; export declare const setFormat: (width: number, prec: number) => void; export declare const debug: ({ data, shape, stride, offset }: ITensor<any>) => void; /** * Syntax sugar for: `console.log(a.toString())`. * * @remarks * Also see {@link debug} and {@link setFormat}. * * @param a - tensor */ export declare const print: (a: ITensor<any>) => void; //# sourceMappingURL=format.d.ts.map