export declare namespace Matrix { type MapFn = (value: T, row: number, col: number) => U; } export declare class Matrix { readonly nrows: number; readonly ncols: number; private _matrix; constructor(nrows: number, ncols: number, init: (row: number, col: number) => T); at(row: number, col: number): T; [Symbol.iterator](): Iterator<[T, number, number]>; values(): Iterable; map(fn: Matrix.MapFn): Matrix; apply(obj: Matrix> | Matrix.MapFn[][]): Matrix; to_sparse(): [T, number, number][]; static from(obj: U[], ncols: number): Matrix; static from(obj: Matrix | U[][]): Matrix; } //# sourceMappingURL=matrix.d.ts.map