diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/accurate_accumulate/accurate_accumulate.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/accurate_accumulate/accurate_accumulate.h')
-rw-r--r-- | library/cpp/accurate_accumulate/accurate_accumulate.h | 8 |
1 files changed, 4 insertions, 4 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()); } |