summaryrefslogtreecommitdiff
path: root/ot
diff options
context:
space:
mode:
authortvayer <titouan.vayer@gmail.com>2019-05-29 15:32:03 +0200
committertvayer <titouan.vayer@gmail.com>2019-05-29 15:32:03 +0200
commit94d2fe5fd0b07060426e9449de0331b88ab53df4 (patch)
tree4bd777972b6f9871630a5bf590485df3333759ac /ot
parent915d5fa4c4020536f2d41c21353b1477befa8af3 (diff)
wizard stuff
Diffstat (limited to 'ot')
-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: