X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fcone%2Fsymmetric_pd.py;h=75c4572eed3cf433b7d0bf6a0e84491919179387;hb=a517ccf793b5915a4a111488d2c876c4120d6f37;hp=b6c86201ac43a55ffc9ce89e3da58e1077c219ec;hpb=93cab80b7a220a16a906be8442ba795d8146df14;p=sage.d.git diff --git a/mjo/cone/symmetric_pd.py b/mjo/cone/symmetric_pd.py index b6c8620..75c4572 100644 --- a/mjo/cone/symmetric_pd.py +++ b/mjo/cone/symmetric_pd.py @@ -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: