diff options
author | tvayer <titouan.vayer@gmail.com> | 2019-05-29 15:32:03 +0200 |
---|---|---|
committer | tvayer <titouan.vayer@gmail.com> | 2019-05-29 15:32:03 +0200 |
commit | 94d2fe5fd0b07060426e9449de0331b88ab53df4 (patch) | |
tree | 4bd777972b6f9871630a5bf590485df3333759ac /ot/optim.py | |
parent | 915d5fa4c4020536f2d41c21353b1477befa8af3 (diff) |
wizard stuff
Diffstat (limited to 'ot/optim.py')
-rw-r--r-- | ot/optim.py | 2 |
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: |