/** * An f64 matrix resident in WASM memory. Storage is column-major: * `view()[column * rows + row]`. Fill the view directly to avoid a JS-to-WASM * input copy; use multiplyInto to reuse output storage across calculations. * * A view is a short-lived borrow: reacquire it after ANY WASM allocation/call * that may grow memory, and never use it after dispose(). Do not retain views * across async boundaries. toArray() returns an independent copy. */ export declare class DenseMatrix { #private; get rows(): number; get cols(): number; constructor(rows: number, cols: number); /** Copy nested row-major input once into persistent column-major storage. */ static from(a: number[][]): DenseMatrix; /** Borrow the current memory view; see the class lifetime contract. */ view(): Float64Array; /** Replace values from a typed buffer without allocating WASM storage. */ setData(data: Float64Array, layout?: "row-major" | "column-major"): this; /** Multiply without JS input/output copies, overwriting a distinct output. */ multiplyInto(rhs: DenseMatrix, out: DenseMatrix): DenseMatrix; /** Copy results out only when needed by the application. */ toArray(): number[][]; /** Release WASM storage. Repeated disposal is harmless. */ dispose(): void; } //# sourceMappingURL=dense_matrix.d.ts.map