12.07.2015 Views

v2007.09.17 - Convex Optimization

v2007.09.17 - Convex Optimization

v2007.09.17 - Convex Optimization

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

652 APPENDIX F. MATLAB PROGRAMSF.1.1.4 signeig()% Sorts signed real part of eigenvalues% and applies sort to values and vectors.% [Q, lam] = signeig(A)% -Jon Dattorrofunction [Q, lam] = signeig(A);[q l] = eig(A);lam = diag(l);[junk id] = sort(real(lam));id = id(length(id):-1:1);lam = diag(lam(id));Q = q(:,id);if nargout < 2Q = diag(lam);endF.1.1.5 Dx()% Make EDM from point listfunction D = Dx(X)[n,N] = size(X);one = ones(N,1);del = diag(X’*X);D = del*one’ + one*del’ - 2*X’*X;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!