X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Frandomgen.py;fp=test%2Frandomgen.py;h=6513440152d3e693618267d6b839faabaf8417f4;hb=7bbec60c0c6be1b7ac28140a51c53fbad19247bf;hp=ef1b19e569825625e134eeef84be3445f2f87b3c;hpb=ac39a0b32d176fa78ecd5cf4ef21676e3bd56d6c;p=dunshire.git diff --git a/test/randomgen.py b/test/randomgen.py index ef1b19e..6513440 100644 --- a/test/randomgen.py +++ b/test/randomgen.py @@ -200,9 +200,10 @@ def random_skew_symmetric_matrix(dims): >>> A.size (3, 3) + >>> from dunshire.options import ABS_TOL >>> from dunshire.matrices import norm >>> A = random_skew_symmetric_matrix(random_natural()) - >>> norm(A + A.trans()) < options.ABS_TOL + >>> norm(A + A.trans()) < ABS_TOL True """ @@ -255,9 +256,12 @@ def random_lyapunov_like_icecream(dims): >>> L = random_lyapunov_like_icecream(3) >>> L.size (3, 3) + + >>> from dunshire.options import ABS_TOL + >>> from dunshire.matrices import inner_product >>> x = matrix([1,1,0]) >>> s = matrix([1,-1,0]) - >>> abs(inner_product(L*x, s)) < options.ABS_TOL + >>> abs(inner_product(L*x, s)) < ABS_TOL True """