summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-09-23 22:29:01 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-09-23 22:29:01 +0200
commit5b822e1422ed808de9144da8ed38037b17dd0b65 (patch)
tree07c258a6e9f050cf5c62070e04d991c0b46764dc /modules/codec/c++
parent62500475dfdc59040e4e3da508d61c4a3b50a773 (diff)
downloadforstio-forstio-5b822e1422ed808de9144da8ed38037b17dd0b65.tar.gz
Added tests for dot product
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/math.hpp2
1 files changed, 1 insertions, 1 deletions
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<schema::Vector<T,D>, Encoding> normalize(const data<schema::Vector<T,D>>& i
saw::data<schema::Vector<T,D>, 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;
}