% sugr_ConicV_ConicM transforms conic vector to conic matrix c = sugr_ConicV_ConicM(C) c = 6-vector C = 3x3 symmetric matrix wf 12/2012
0001 %% sugr_ConicV_ConicM transforms conic vector to conic matrix 0002 % 0003 % c = sugr_ConicV_ConicM(C) 0004 % 0005 % c = 6-vector 0006 % C = 3x3 symmetric matrix 0007 % 0008 % wf 12/2012 0009 0010 function C = sugr_ConicV_ConicM(c) 0011 0012 C = [c(1) c(2) c(4) ;... 0013 c(2) c(3) c(5) ;... 0014 c(4) c(5) c(6)]; 0015 0016 end