Code covered by the BSD License  

Highlights from
UD Factorization & Kalman Filtering

UD Factorization & Kalman Filtering

by

 

15 Aug 2011 (Updated )

UD and LD factorization of nonnegative matrices and associated Kalman filter implementations.

[p]=ud2sym(ud)
% UD2SYM : Recover P from UD, an UDU factorization of P
%          U upper triangular, D diagonal, P nonnegative symmetric
%
%          [p]=ud2sym(ud)
%
%          p=u*d*u'; u unit upper triangular, d diagonal
%                    both stored in ud
%
%          See also sym2ud, udt2sym, udinv
%
%          References: Factorization methods for discrete sequential estimation
%                      1977, Gerald J. Bierman
%
% L.G. van Willigenburg, W.L. de Koning, Update August 2011
  function [p]=ud2sym(ud)
  
  [n,m]=size(ud);
  if n~=m; error('ud must be square'); end;
  if n==0; error('  Compatible but empty inputs'); end;

  d=diag(diag(ud));
  u=ud-d+diag(ones(1,n));
  p=u*d*u';

Contact us