X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fcone%2Fsymmetric_psd.py;h=b3f05f62c707e5b6c7e02d8c2806e23f543f7d03;hb=af8292334d767865c22bd2f1002ab1f214e9f1ae;hp=514d0392c1fbe4fbae72057a87fd5524744c0668;hpb=3cfc8e228ae337aed975118444a8cbad9a5a7ac3;p=sage.d.git diff --git a/mjo/cone/symmetric_psd.py b/mjo/cone/symmetric_psd.py index 514d039..b3f05f6 100644 --- a/mjo/cone/symmetric_psd.py +++ b/mjo/cone/symmetric_psd.py @@ -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.