Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
LDLDECOM.M
Package: easy.zip [view]
Upload User: sfyaiting
Upload Date: 2009-10-25
Package Size: 320k
Code Size: 1k
Category:
GPS develop
Development Platform:
Matlab
- function [L,D] = ldldecom(Q)
- %LDLDECOM: Find LtDL-decompostion of Q-matrix
- %
- % This routine finds the LtDL decomposition of a given variance/
- % covariance matrix.
- %
- % Input arguments:
- % Q: Symmetric n by n matrix to be factored
- %
- % Output arguments:
- % L: Out - n by n factor matrix (strict lower triangular)
- % D: Out - Diagonal n-vector
- % ----------------------------------------------------------------------
- % File.....: ldldecom
- % Date.....: 19-MAY-1999
- % Author...: Peter Joosten
- % Mathematical Geodesy and Positioning
- % Delft University of Technology
- % ----------------------------------------------------------------------
- n = size (Q,1);
- for i = n:-1:1;
- D(i) = Q(i,i);
- L(i,1:i) = Q(i,1:i)/sqrt(Q(i,i));
- for j = 1:i-1
- Q(j,1:j) = Q(j,1:j)-L(i,1:j)*L(i,j);
- end
- L(i,1:i) = L(i,1:i)/L(i,i);
- end;
- %if (sum(D < 1E-10));
- % error ('Matrix on input is not positive definite!');
- %end;
- % ----------------------------------------------------------------------
- % End of routine: ldldecom
- % ----------------------------------------------------------------------