Skip to content

Commit

Permalink
fix doc douglas_rachford tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pena committed Jun 15, 2017
1 parent 34b1348 commit 66be203
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/tutorials/compressed_sensing_douglas_rachford.rst
Expand Up @@ -24,9 +24,9 @@ reconstruction. See :cite:`candes2007CSperfect` for details.
>>> import numpy as np
>>> m = int(np.ceil(S * np.log(n)))
>>> print('Number of measurements: {}'.format(m))
Number of measurements: 852
Number of measurements: 307
>>> print('Compression ratio: {:3.2f}'.format(float(n) / m))
Compression ratio: 5.87
Compression ratio: 2.93

We generate a random measurement matrix `A`:

Expand Down Expand Up @@ -101,8 +101,8 @@ follows:

>>> x0 = np.zeros(n)
>>> ret = solvers.solve([f1, f2], x0, solver, rtol=1e-4, maxit=300)
Solution found after 56 iterations:
objective function f(sol) = 7.590460e+00
Solution found after 43 iterations:
objective function f(sol) = 5.607407e+00
stopping criterion: RTOL

Let's display the results:
Expand Down

0 comments on commit 66be203

Please sign in to comment.