Skip to content

laneopsVector math for Node.js and the browser.

Typed arrays, a shared Rust core, and numerical rules you can inspect.

Three vector lanes of different lengths

One engine, familiar arrays

ts
import { createVectorEngine } from 'laneops'

const engine = await createVectorEngine()
try {
  const samples = new Float32Array([1, 2, 3])
  const result = engine.f32.mul(samples, 2) // [2, 4, 6]
  console.log(result, engine.getCapability('mul'))
} finally {
  engine.dispose()
}

The current candidate implements 97 operations and 404 type signatures. Explicit SIMD covers 17 f32 signatures per SIMD backend; other signatures use scalar fallback. Small workloads can be faster in JavaScript. Choose an execution model using measurements of your workload.

Released under the MIT License.