Dew MtxVec NET
TMtx.LU Method
Summary
General LU, Cholesky or Bunch-Kaufmann factorization.

Class
TMtx

Declaration
Function LU(Dst: TMtx; P: TVec; MtxType: TMtxType = mtGeneral): TMtx;

Description
Performs a general LU, Cholesky or Bunch-Kaufmann factorization on the calling matrix and stores the results in lower triangular matrix L and upper triangular matrix U. The MtxType parameter defines which optimized method will be used to calculate the LU factorization. Depending on the type of the calling matrix the LU method will use specific optimized algorithm to perform the factorization. If you don't know the type of the calling matrix, you can omit the MtxType parameter (the default value mtGeneral will be used) or determine the type of matrix with the DetectMtxType method. The following methods can be used to calculate the LU factorization:

NOTE: An exception will be raised if the calling matrix Quadratic property is not true and matrix storage format is not banded.

 See Also 
LUSolve 

Example 1

var LU,A: TMtx; P: TVec; begin CreateIt(LU,A); CreateIt(P); try A.SetIt(3,2,False,[1,2, 3,4]); A.LU(LU,P); finally FreeIt(LU,A); FreeIt(P); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com