Skip to main content

AssemblyScript + WebAssembly SIMD

WASMatrix

การคำนวณเมทริกซ์ dense ที่รวดเร็วสำหรับ JavaScript runtime พร้อม TypeScript API และ WASM core ที่ต้องใช้ SIMD.

npm install wasmatrix

WASM memory first

Matrix buffers stay in WebAssembly memory until an explicit readback asks for JavaScript values.

Algebra-aware execution

Lazy elementwise DAGs, transpose views, structure tags, and factorization caches reduce avoidable passes.

Browser and server

The ESM package ships JavaScript and WASM separately, using a bundler-friendly asset URL.

Try the runtime

Use the same Matrix API in the guide.

The documentation includes a CodeMirror-based sandbox custom element with a live console, so examples can stay close to the API they describe.

What it optimizes

Less copying, fewer passes, reusable decomposition work.

elementwise fusionmatrix multiplicationLU / Cholesky / QRGram specializationbroadcast vectorslazy inverse solves