summaryrefslogtreecommitdiff
path: root/modules/codec/c++/math.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-09-23 17:08:11 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-09-23 17:08:11 +0200
commitf992a6afc4e99691cf70186cf07031ed1f65096e (patch)
tree7113e19b1c77e96f24ddfce738390bdd20da1885 /modules/codec/c++/math.hpp
parent469fe4084787d00a9ab10f00204f7e766ed68161 (diff)
Fixed a bug in normalizationHEADmaster
Diffstat (limited to 'modules/codec/c++/math.hpp')
-rw-r--r--modules/codec/c++/math.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec/c++/math.hpp b/modules/codec/c++/math.hpp
index 67d8ed3..ca43dd0 100644
--- a/modules/codec/c++/math.hpp
+++ b/modules/codec/c++/math.hpp
@@ -35,8 +35,8 @@ data<schema::Vector<T,D>, Encoding> normalize(const data<schema::Vector<T,D>>& i
auto sqrt_inp_dot = sqrt<T>(inp_dot);
saw::data<schema::Vector<T,D>, Encoding> out;
- out.at({{0u}}).set(out.at({{0u}}).get() / sqrt_inp_dot.at({}).get());
- out.at({{1u}}).set(out.at({{1u}}).get() / sqrt_inp_dot.at({}).get());
+ out.at({{0u}}).set(input.at({{0u}}).get() / sqrt_inp_dot.at({}).get());
+ out.at({{1u}}).set(input.at({{1u}}).get() / sqrt_inp_dot.at({}).get());
return out;
}
}