aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/accurate_accumulate
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/accurate_accumulate
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/accurate_accumulate')
-rw-r--r--library/cpp/accurate_accumulate/accurate_accumulate.h8
-rw-r--r--library/cpp/accurate_accumulate/benchmark/main.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/accurate_accumulate/accurate_accumulate.h b/library/cpp/accurate_accumulate/accurate_accumulate.h
index dacced17e9..87f12d632e 100644
--- a/library/cpp/accurate_accumulate/accurate_accumulate.h
+++ b/library/cpp/accurate_accumulate/accurate_accumulate.h
@@ -184,7 +184,7 @@ static inline double FastAccumulate(It begin, It end) {
}
template <typename T>
-static inline double FastAccumulate(const TVector<T>& sequence) {
+static inline double FastAccumulate(const TVector<T>& sequence) {
return FastAccumulate(sequence.begin(), sequence.end());
}
@@ -194,7 +194,7 @@ static inline double FastKahanAccumulate(It begin, It end) {
}
template <typename T>
-static inline double FastKahanAccumulate(const TVector<T>& sequence) {
+static inline double FastKahanAccumulate(const TVector<T>& sequence) {
return FastKahanAccumulate(sequence.begin(), sequence.end());
}
@@ -204,7 +204,7 @@ static inline double FastInnerProduct(It1 begin1, It1 end1, It2 begin2) {
}
template <typename T>
-static inline double FastInnerProduct(const TVector<T>& lhs, const TVector<T>& rhs) {
+static inline double FastInnerProduct(const TVector<T>& lhs, const TVector<T>& rhs) {
Y_ASSERT(lhs.size() == rhs.size());
return FastInnerProduct(lhs.begin(), lhs.end(), rhs.begin());
}
@@ -215,7 +215,7 @@ static inline double FastKahanInnerProduct(It1 begin1, It1 end1, It2 begin2) {
}
template <typename T>
-static inline double FastKahanInnerProduct(const TVector<T>& lhs, const TVector<T>& rhs) {
+static inline double FastKahanInnerProduct(const TVector<T>& lhs, const TVector<T>& rhs) {
Y_ASSERT(lhs.size() == rhs.size());
return FastKahanInnerProduct(lhs.begin(), lhs.end(), rhs.begin());
}
diff --git a/library/cpp/accurate_accumulate/benchmark/main.cpp b/library/cpp/accurate_accumulate/benchmark/main.cpp
index 3c5e6e775d..11f5d7d843 100644
--- a/library/cpp/accurate_accumulate/benchmark/main.cpp
+++ b/library/cpp/accurate_accumulate/benchmark/main.cpp
@@ -10,7 +10,7 @@
namespace {
template <typename T, size_t N>
struct TNormalizedExamplesHolder {
- TVector<T> Examples;
+ TVector<T> Examples;
TNormalizedExamplesHolder()
: Examples(N)
{
@@ -23,7 +23,7 @@ namespace {
template <typename T, size_t N>
struct TExamplesHolder {
- TVector<T> Examples;
+ TVector<T> Examples;
TExamplesHolder()
: Examples(N)
{