@thi.ng/tensors
Version:
0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage
17 lines • 672 B
TypeScript
import type { NumericArray } from "@thi.ng/api";
import type { ITensor } from "./api.js";
export declare const IllegalShapeError: {
new (msg?: NumericArray | undefined): {
origMessage: string;
name: string;
message: string;
stack?: string;
cause?: unknown;
};
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
stackTraceLimit: number;
};
export declare const illegalShape: (shape: NumericArray) => never;
export declare const ensureShape: (t: ITensor<any>, shape: number[]) => false;
//# sourceMappingURL=errors.d.ts.map