perf(hex8): use MKL Hessian products and exact zero pair addition

This commit is contained in:
KOKO\Mimi
2026-10-14 16:49:15 +09:00
parent dec6eb3199
commit e18271051c
4 changed files with 116 additions and 34 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ using math_internal::HighLow;
using Triple = std::array<HighLow, 3>;
using Tensor = std::array<Triple, 3>;
HighLow operator+(HighLow a, HighLow b) { return math_internal::Add(a, b); }
HighLow operator+(HighLow a, HighLow b) {
return hex8_internal::AddPair(a, b);
}
HighLow operator-(HighLow a, HighLow b) {
return math_internal::Subtract(a, b);
}