From 6d82fa825a67aa93ade6b483b09099ede5f452f8 Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Sun, 11 Jan 2026 17:34:05 +0000 Subject: [PATCH] Add intermediate computation variables and Pearson --- tools/imatrix/imatrix.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/imatrix/imatrix.cpp b/tools/imatrix/imatrix.cpp index 405f0a4967..4620cbbf74 100644 --- a/tools/imatrix/imatrix.cpp +++ b/tools/imatrix/imatrix.cpp @@ -56,7 +56,12 @@ struct tensor_statistics { float entropy = 0.0f; float zd_score = 0.0f; float cossim = 0.0f; + float pearson = 0.0f; float l2_dist = 0.0f; + double dot_prod = 0.0; + double norm1_sq = 0.0; + double norm2_sq = 0.0; + double l2_dist_sq = 0.0; }; class IMatrixCollector {