aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ymath.h
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/ymath.h
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ymath.h')
-rw-r--r--util/generic/ymath.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/ymath.h b/util/generic/ymath.h
index 067f091a32..9ff9ae2abe 100644
--- a/util/generic/ymath.h
+++ b/util/generic/ymath.h
@@ -56,14 +56,14 @@ static constexpr T Sqr(const T t) noexcept {
return t * t;
}
-inline double Sigmoid(double x) {
- return 1.0 / (1.0 + std::exp(-x));
-}
-
-inline float Sigmoid(float x) {
- return 1.0f / (1.0f + std::exp(-x));
-}
-
+inline double Sigmoid(double x) {
+ return 1.0 / (1.0 + std::exp(-x));
+}
+
+inline float Sigmoid(float x) {
+ return 1.0f / (1.0f + std::exp(-x));
+}
+
static inline bool IsFinite(double f) {
#if defined(isfinite)
return isfinite(f);