mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
21040a19b1
commit
fa52a91eb8
1 file changed
+6
-2
@@ -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];
|
||||
}
|
||||
|
||||
// <a, b>
|
||||
let dotAB = 0;
|
||||
|
||||
Reference in new issue
Block a user