From af8292334d767865c22bd2f1002ab1f214e9f1ae Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 12 Oct 2015 20:28:20 -0400 Subject: [PATCH] Fix deprecated zero_element(). --- mjo/cone/symmetric_psd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. -- 2.43.2