% sugr_ConicM_ConicV transforms conic matrix to conic vector c = sugr_ConicM_ConicV(C) C = 3x3 symmetric matrix c = 6-vector wf 11/2012
0001 %% sugr_ConicM_ConicV transforms conic matrix to conic vector 0002 % 0003 % c = sugr_ConicM_ConicV(C) 0004 % 0005 % C = 3x3 symmetric matrix 0006 % c = 6-vector 0007 % 0008 % wf 11/2012 0009 0010 function c = sugr_ConicM_ConicV(C) 0011 0012 c = [C(1,1) C(1,2) C(2,2) C(1,3) C(2,3) C(3,3)]'; 0013 0014 end