/ concept-collection / matmul-bench
Sign in
concept-collection / matmul-bench
matmul-bench / wasm / matmul.d.ts
14 lines · 589 BBlameHistoryRaw
1// Hand-written type declaration for matmul.js (emscripten's generated glue
2// has none). Copied next to dist/matmul.js by build-wasm.sh — TS picks up a
3// .d.ts colocated with a same-named .js file automatically.
4export interface MatmulExports {
5 _matmul_naive(a: number, b: number, c: number, n: number): void
6 _matmul_blocked(a: number, b: number, c: number, n: number): void
7 _malloc(bytes: number): number
8 _free(ptr: number): void
9 HEAPF64: Float64Array
12export default function createMatmulModule(opts?: {
13 locateFile?: (path: string) => string
14}): Promise<MatmulExports>
moveopenescclose