from dunshire import errors
from dunshire import matrices
from dunshire import games
+from test import randomgen
from test import symmetric_linear_game_test
def build_suite():
suite = TestSuite()
suite.addTest(DocTestSuite(cones))
suite.addTest(DocTestSuite(errors))
- suite.addTest(DocTestSuite(matrices))
suite.addTest(DocTestSuite(games))
+ suite.addTest(DocTestSuite(matrices))
suite.addTest(DocTestSuite(symmetric_linear_game_test))
+ suite.addTest(DocTestSuite(randomgen))
slg_tests = TestLoader().loadTestsFromModule(symmetric_linear_game_test)
suite.addTest(slg_tests)
return suite
>>> 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
"""
>>> 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
"""