/** * Optimized JavaScript distance functions with SIMD-style unrolling. * These use allocation-free, unrolled loops where practical. Performance is * runtime- and workload-dependent; benchmark before making throughput claims. * and enabling better CPU pipelining. */ export declare function dotProductFast(a: Float32Array, b: Float32Array): number; export declare function l2SquaredFast(a: Float32Array, b: Float32Array): number; /** * Normalize a vector in place. * Uses 8-wide unrolling for better ILP. * Returns the original norm of the vector. */ export declare function normalizeInPlace(v: Float32Array): number; /** * Compute cosine distance between two vectors. * For pre-normalized vectors, this is simply 1 - dot(a, b). * Uses 8-wide unrolling for norm computation. */ export declare function cosineDistanceFast(a: Float32Array, b: Float32Array, aIsNormalized?: boolean, bIsNormalized?: boolean): number; //# sourceMappingURL=JsDistanceBackend.d.ts.map