From: Michael Orlitzky Date: Tue, 13 Oct 2015 00:28:20 +0000 (-0400) Subject: Fix deprecated zero_element(). X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=af8292334d767865c22bd2f1002ab1f214e9f1ae;p=sage.d.git Fix deprecated zero_element(). --- 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.