%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ldldown.m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % function [L,d]=ldldown(L,d,j) % downdates LDL^T factorization when j-th row and column are replaced % by j-th unit vector % % d contains diag(D) and is assumed positive % function [L,d]=ldldown(L,d,j); n=size(d,1); test=0; if test, disp('enter ldldown') A=L*diag(d)*L';A(:,j)=zeros(n,1);A(j,:)=zeros(1,n);A(j,j)=1; end; if j