🎯
Choose your precision
f32, f64, six integer types, masks and explicit conversions. No implicit type promotion.
Read the contracts
Typed arrays, a shared Rust core, and numerical rules you can inspect.
f32, f64, six integer types, masks and explicit conversions. No implicit type promotion.
Read the contracts
Reuse resident buffers, fuse supported operation chains, or run large jobs in Workers.
Build a pipeline
Native AVX2 and NEON, Wasm SIMD and scalar fallback. Query the implementation of each operation.
Check support
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.