UNPKG

cnum

Version:

Represent rational numbers in comfortably numeric way.

11 lines (10 loc) 343 B
export type TensorInput = Array<TensorInput | bigint>; export declare const arrayDepth: (a: TensorInput) => number; export declare class Tensor { values: bigint[]; shape: [number, number]; constructor(values: TensorInput, shape?: [number, number]); valueOf(): number; toString(): string; } export default Tensor;