diff options
Diffstat (limited to 'src/wasm.ts')
| -rw-r--r-- | src/wasm.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wasm.ts b/src/wasm.ts new file mode 100644 index 0000000..3a308b2 --- /dev/null +++ b/src/wasm.ts @@ -0,0 +1,9 @@ +import { instantiate } from '../build/out.js'; +import url from '../build/out.wasm'; +export const { + memory, + linspace, + intersperse, + dft, + fft, +} = await instantiate(await WebAssembly.compileStreaming(fetch(url)));
\ No newline at end of file |
