]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/cone/symmetric_psd.py
Fix deprecated zero_element().
[sage.d.git] / mjo / cone / symmetric_psd.py
index 514d0392c1fbe4fbae72057a87fd5524744c0668..b3f05f62c707e5b6c7e02d8c2806e23f543f7d03 100644 (file)
@@ -300,9 +300,8 @@ def random_psd(V, accept_zero=True, rank=None):
         # Use the one the user gave us.
         rank_A = rank
 
-    # Begin with the zero matrix, and add projectors to it if we have
-    # any.
-    A = V.zero_element().column()*V.zero_element().row()
+    # Begin with the zero matrix, and add projectors to it if we have any.
+    A = V.zero().column()*V.zero().row()
 
     # Careful, begin at idx=1 so that we only generate a projector
     # when rank_A is greater than zero.