Added code for ILS.

The description is not complete, but we have an implementation
of the iterated least squares.
This commit is contained in:
Roger Labbe
2015-02-27 21:21:54 -08:00
parent b838bd1a10
commit 8fc4d99fc3
3 changed files with 341 additions and 99 deletions

View File

@@ -52,7 +52,14 @@ def figsize(x,y):
yield
reset_axis()
@contextmanager
def numpy_precision(precision):
old = np.get_printoptions()['precision']
np.set_printoptions(precision=precision)
yield
np.set_printoptions(old)
def _decode_list(data):
rv = []
for item in data: