From 5b822e1422ed808de9144da8ed38037b17dd0b65 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 23 Sep 2025 22:29:01 +0200 Subject: Added tests for dot product --- modules/codec/c++/math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/math.hpp b/modules/codec/c++/math.hpp index d33482d..ec051df 100644 --- a/modules/codec/c++/math.hpp +++ b/modules/codec/c++/math.hpp @@ -36,7 +36,7 @@ data, Encoding> normalize(const data>& i saw::data, Encoding> out; for(uint64_t i = 0u; i < D; ++i){ - out.at({{i}}).set(input.at({{i}}).get() / sqrt_inp_dot.at({}).get()); + out.at({{i}}) = (input.at({{i}}) / sqrt_inp_dot.at({})); } return out; } -- cgit v1.2.3