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