summaryrefslogtreecommitdiff
path: root/src/wasm.ts
blob: cf819da3cce4da96cbfcd59db4388b0761115fbf (plain)
1
2
3
4
5
6
7
8
9
10
import { instantiate } from '../build/out.js';
import module from '../build/out.wasm';
export const {
	memory,
	mathS, mathV, mathSS, mathSV, mathVS, mathVV,
	linspace,
	intersperse,
	unzip,
	fft,
} = await instantiate(await WebAssembly.compileStreaming(fetch('/' + module)), { env: {} });