From fa52a91eb88e5cb4470d991281bc63d4e529614b Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 7 Jan 2026 04:41:23 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T04:41:23Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/embeddings/src/hyperbolic.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/v3/@claude-flow/embeddings/src/hyperbolic.ts b/v3/@claude-flow/embeddings/src/hyperbolic.ts index 93ed134dc1..99495e9a1d 100644 --- a/v3/@claude-flow/embeddings/src/hyperbolic.ts +++ b/v3/@claude-flow/embeddings/src/hyperbolic.ts @@ -209,8 +209,12 @@ export function mobiusAdd( throw new Error('Vectors must have same dimension'); } - const normASq = a.reduce((sum, v) => sum + v * v, 0); - const normBSq = b.reduce((sum, v) => sum + v * v, 0); + let normASq = 0; + let normBSq = 0; + for (let i = 0; i < a.length; i++) { + normASq += a[i] * a[i]; + normBSq += b[i] * b[i]; + } // let dotAB = 0;