summaryrefslogtreecommitdiff
path: root/ot/optim.py
diff options
context:
space:
mode:
Diffstat (limited to 'ot/optim.py')
-rw-r--r--ot/optim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/optim.py b/ot/optim.py
index 282b30d..b96d920 100644
--- a/ot/optim.py
+++ b/ot/optim.py
@@ -427,7 +427,7 @@ def solve_1d_linesearch_quad_funct(a, b, c):
f1 = a + f0 + df0
if a > 0: # convex
- minimum = min(1, max(0, np.divide(-b, 2 * a)))
+ minimum = min(1, max(0, np.divide(-b, 2.0 * a)))
return minimum
else: # non convex
if f0 > f1: