]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Update usage of matrix_simplify_full (now part of Sage).
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 20 Sep 2015 00:57:39 +0000 (20:57 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 20 Sep 2015 00:57:39 +0000 (20:57 -0400)
mjo/cone/symmetric_psd.py

index bb46fc926ec8dc23588ef08ea49a974060a02841..514d0392c1fbe4fbae72057a87fd5524744c0668 100644 (file)
@@ -12,7 +12,6 @@ from sage.all import *
 from os.path import abspath
 from site import addsitedir
 addsitedir(abspath('../../'))
-from mjo.symbolic import matrix_simplify_full
 
 
 def is_symmetric_psd(A):
@@ -153,7 +152,7 @@ def factor_psd(A):
 
         sage: A = matrix(SR, [[0, 2, 3], [2, 0, 0], [3, 0, 0]])
         sage: X = factor_psd(A)
-        sage: A2 = matrix_simplify_full(X*X.transpose())
+        sage: A2 = (X*X.transpose()).simplify_full()
         sage: A == A2
         True