summaryrefslogtreecommitdiff
path: root/src/wasm.ts
blob: 4a8d3c85b4b0f314d5268c047d4c5e517ac0adb2 (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: {} });