diff options
author | tvayer <titouan.vayer@gmail.com> | 2019-05-29 15:19:41 +0200 |
---|---|---|
committer | tvayer <titouan.vayer@gmail.com> | 2019-05-29 15:19:41 +0200 |
commit | 915d5fa4c4020536f2d41c21353b1477befa8af3 (patch) | |
tree | d2d68d20f884d94c1467dd72bdfb86d66a3b739c | |
parent | 103dfe0ee76e110bb9e0d1e36e3dd86109db3fce (diff) |
python2 divide problem
-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 2170c7e..282b30d 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, -b / (2 * a))) + minimum = min(1, max(0, np.divide(-b, 2 * a))) return minimum else: # non convex if f0 > f1: |