]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/cone/symmetric_pd.py
mjo/cone/symmetric_pd.py: add a missing set_random_seed().
[sage.d.git] / mjo / cone / symmetric_pd.py
index b6c86201ac43a55ffc9ce89e3da58e1077c219ec..75c4572eed3cf433b7d0bf6a0e84491919179387 100644 (file)
@@ -1,4 +1,4 @@
-"""
+r"""
 The symmetric positive definite cone `$S^{n}_{++}$` is the cone
 consisting of all symmetric positive-definite matrices (as a subset of
 $\mathbb{R}^{n \times n}$`. It is the interior of the symmetric positive
@@ -31,6 +31,7 @@ def is_symmetric_pd(A):
 
     The identity matrix is obviously symmetric and positive-definite::
 
+        sage: set_random_seed()
         sage: A = identity_matrix(ZZ, ZZ.random_element(10))
         sage: is_symmetric_pd(A)
         True
@@ -110,7 +111,7 @@ def random_symmetric_pd(V):
 
     INPUT:
 
-    - ``V`` - The vector space on which the returned matrix will act.
+    - ``V`` -- The vector space on which the returned matrix will act.
 
     OUTPUT: